diff options
author | Ruud van der Pas <ruud.vanderpas@oracle.com> | 2022-08-02 10:13:48 -0700 |
---|---|---|
committer | Vladimir Mezentsev <vladimir.mezentsev@oracle.com> | 2022-08-03 10:10:35 -0700 |
commit | 4d44946794e68cf79cfba467fa414a958dba2185 (patch) | |
tree | f995ffe2f9f9f11de210fa2cd1daa2ce47664ebc /gprofng/gp-display-html | |
parent | a6ad7914429a22d3d835bd998b032212b776a08a (diff) | |
download | gdb-4d44946794e68cf79cfba467fa414a958dba2185.zip gdb-4d44946794e68cf79cfba467fa414a958dba2185.tar.gz gdb-4d44946794e68cf79cfba467fa414a958dba2185.tar.bz2 |
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.
Diffstat (limited to 'gprofng/gp-display-html')
-rw-r--r-- | gprofng/gp-display-html/gp-display-html.in | 6 |
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 ab21dbb..8131ecf 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]; |