]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Massif: --time-unit=ms was broken in the ms_print script. People obviously
authorNicholas Nethercote <njn@valgrind.org>
Tue, 29 Jan 2008 21:35:25 +0000 (21:35 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Tue, 29 Jan 2008 21:35:25 +0000 (21:35 +0000)
aren't using that option much!

MERGED FROM TRUNK

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_3_BRANCH@7362

massif/ms_print.in

index 6cc3faa30b94c81b9dfb50d928e1cdfaaef2fcbe..2c0cad23a9e2c59dcb0d06342a1101c19b355d0d 100755 (executable)
@@ -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--) {