From: Nicholas Nethercote Date: Tue, 29 Jan 2008 21:33:25 +0000 (+0000) Subject: Massif: --time-unit=ms was broken in the ms_print script. People obviously X-Git-Tag: svn/VALGRIND_3_4_0~1091 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a42c4ce50491c6037cde6f4a3a0c641109f2d113;p=thirdparty%2Fvalgrind.git Massif: --time-unit=ms was broken in the ms_print script. People obviously aren't using that option much! git-svn-id: svn://svn.valgrind.org/valgrind/trunk@7361 --- 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--) {