gprofng: fix bug 29410 - Argument " 0." isn't numeric in numeric gt (>)
authorRuud van der Pas <ruud.vanderpas@oracle.com>
Tue, 2 Aug 2022 17:13:48 +0000 (10:13 -0700)
committerVladimir Mezentsev <vladimir.mezentsev@oracle.com>
Wed, 3 Aug 2022 17:10:35 +0000 (10:10 -0700)
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.

gprofng/gp-display-html/gp-display-html.in

index ab21dbb086214b5d98124f00c8000a36ffdbd469..8131ecf4677ddd3c959aa90aef393e6bfe0eb2c3 100644 (file)
@@ -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];