diff --git a/[refs] b/[refs] index 4862177d809a..dc3591b3c4cd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 2a813f8cd8ce91d588a595c5709502dece3af289 +refs/heads/master: 06d1cd267ca0a2a76beb9a762465572dd3d0cce6 diff --git a/trunk/scripts/bootgraph.pl b/trunk/scripts/bootgraph.pl index ea2b079af9fd..d2c61efc216f 100644 --- a/trunk/scripts/bootgraph.pl +++ b/trunk/scripts/bootgraph.pl @@ -108,9 +108,9 @@ my $stylecounter = 0; my %rows; my $rowscount = 1; +my @initcalls = sort { $start{$a} <=> $start{$b} } keys(%start); my $key; -my $value; -while (($key,$value) = each %start) { +foreach $key (@initcalls) { my $duration = $end{$key} - $start{$key}; if ($duration >= $threshold) { @@ -121,7 +121,7 @@ $rows{$pid} = $rowscount; $rowscount = $rowscount + 1; } - $s = ($value - $firsttime) * $mult; + $s = ($start{$key} - $firsttime) * $mult; $s2 = $s + 6; $e = ($end{$key} - $firsttime) * $mult; $w = $e - $s;