From: Nicholas Nethercote Date: Tue, 29 Jan 2008 21:35:25 +0000 (+0000) Subject: Massif: --time-unit=ms was broken in the ms_print script. People obviously X-Git-Tag: svn/VALGRIND_3_3_1~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b0359c96bc452e3183901c83430f9f72da32d15;p=thirdparty%2Fvalgrind.git Massif: --time-unit=ms was broken in the ms_print script. People obviously aren't using that option much! MERGED FROM TRUNK git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_3_BRANCH@7362 --- diff --git a/massif/ms_print.in b/massif/ms_print.in index 6cc3faa30b..2c0cad23a9 100755 --- a/massif/ms_print.in +++ b/massif/ms_print.in @@ -589,10 +589,10 @@ sub read_input_file() #------------------------------------------------------------------------- my ($y_label, $y_unit) = B_max_label($peak_mem_total_szB); my ($x_label, $x_unit); - if ($time_unit eq "i") { ($x_label, $x_unit) = i_max_label($end_time) } - elsif ($time_unit eq "s") { ($x_label, $x_unit) = t_max_label($end_time) } - elsif ($time_unit eq "B") { ($x_label, $x_unit) = B_max_label($end_time) } - else { die "bad time_unit: $time_unit\n"; } + if ($time_unit eq "i") { ($x_label, $x_unit) = i_max_label($end_time) } + elsif ($time_unit eq "ms") { ($x_label, $x_unit) = t_max_label($end_time) } + elsif ($time_unit eq "B") { ($x_label, $x_unit) = B_max_label($end_time) } + else { die "bad time_unit: $time_unit\n"; } printf(" %2s\n", $y_unit); for ($y = $graph_y; $y >= 0; $y--) {