chiark / gitweb /
detail shows correct sloths
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 28 Jun 2010 21:08:42 +0000 (22:08 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Mon, 28 Jun 2010 21:08:42 +0000 (22:08 +0100)
cgi

diff --git a/cgi b/cgi
index 282e85fefafecf5fc994f54cc61f83caff4a9953..d85e4b7314288ca5ce56358da603cc01235b47d0 100755 (executable)
--- 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&section=$section".
                "&sloth=$tsloth&elem=$elem";
            print a({href=>"$imgurl&w=780&h=800"},