summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuud van der Pas <ruud.vanderpas@oracle.com>2022-08-02 10:13:48 -0700
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>2022-08-03 10:26:57 -0700
commit7ca38082b7b66d6604495b47ca253f723a5b7e5c (patch)
tree23dc73b08040aef328fac6565701df4b5d2cf4bb
parenta0d1554e45cd6261017f1ae9988251dbb7c15a5b (diff)
gprofng: fix bug 29410 - Argument "&nbsp;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.
-rw-r--r--gprofng/gp-display-html/gp-display-html.in6
1 files changed, 6 insertions, 0 deletions
diff --git a/gprofng/gp-display-html/gp-display-html.in b/gprofng/gp-display-html/gp-display-html.in
index ab21dbb086..8131ecf467 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/&nbsp;//g;
if (exists ($max_metric_values[$metric]))
{
$max_value = $max_metric_values[$metric];