public inbox for gdb-cvs@sourceware.org
help / color / mirror / Atom feed
* [binutils-gdb/binutils-2_39-branch] gprofng: fix bug 29410 - Argument " 0." isn't numeric in numeric gt (>)
@ 2022-08-03 17:34 Vladimir Mezentsev
0 siblings, 0 replies; only message in thread
From: Vladimir Mezentsev @ 2022-08-03 17:34 UTC (permalink / raw)
To: bfd-cvs, gdb-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=7ca38082b7b66d6604495b47ca253f723a5b7e5c
commit 7ca38082b7b66d6604495b47ca253f723a5b7e5c
Author: Ruud van der Pas <ruud.vanderpas@oracle.com>
Date: Tue Aug 2 10:13:48 2022 -0700
gprofng: fix bug 29410 - Argument " 0." isn't numeric in numeric gt (>)
gprofng/Changelog:
2022-08-02 Ruud van der Pas <ruud.vanderpas@oracle.com>
PR gprofng/29410
* gp-display-html/gp-display-html.in: Remove non-breaking spaces.
Diff:
---
gprofng/gp-display-html/gp-display-html.in | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/gprofng/gp-display-html/gp-display-html.in b/gprofng/gp-display-html/gp-display-html.in
index ab21dbb0862..8131ecf4677 100644
--- a/gprofng/gp-display-html/gp-display-html.in
+++ b/gprofng/gp-display-html/gp-display-html.in
@@ -6020,6 +6020,12 @@ sub generate_dis_html
my $current_value;
my $max_value;
$current_value = $current_metrics[$metric];
+#------------------------------------------------------------------------------
+# As part of the padding process, non-breaking spaces may have been inserted
+# in an earlier phase. Temporarily remove these to make sure that the maximum
+# metric values can be computed.
+#------------------------------------------------------------------------------
+ $current_value =~ s/ //g;
if (exists ($max_metric_values[$metric]))
{
$max_value = $max_metric_values[$metric];
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-08-03 17:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-03 17:34 [binutils-gdb/binutils-2_39-branch] gprofng: fix bug 29410 - Argument " 0." isn't numeric in numeric gt (>) Vladimir Mezentsev
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).