From: Ian Jackson Date: Mon, 28 Jun 2010 21:08:42 +0000 (+0100) Subject: detail shows correct sloths X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ijackson/git?a=commitdiff_plain;h=89ca7882f9c083bd47b5867840bd8ceeb761f855;p=rrd-graphs.git detail shows correct sloths --- 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"},