From 89ca7882f9c083bd47b5867840bd8ceeb761f855 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Mon, 28 Jun 2010 22:08:42 +0100 Subject: [PATCH] detail shows correct sloths --- cgi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cgi b/cgi index 282e85f..d85e4b7 100755 --- a/cgi +++ b/cgi @@ -336,11 +336,11 @@ if ($detail) { my $elems= $group_elems{$section,$detail}; die unless $elems; start_page("$detail graphs"); - foreach my $xsloth (0..5) { + foreach my $tsloth (0..5) { foreach my $elem (@$elems) { my $g= $graphs{$section,$detail,$elem}; die unless $g; - my $tsloth= $xsloth + $g->{Slower}; + next if $tsloth >= @{ $g->{TimeRanges} }; my $imgurl= "$self?graph=$detail§ion=$section". "&sloth=$tsloth&elem=$elem"; print a({href=>"$imgurl&w=780&h=800"}, -- 2.30.2