]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Break the table into pieces, one per month, to make rendering faster.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 29 Jun 2001 07:04:34 +0000 (07:04 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 29 Jun 2001 07:04:34 +0000 (07:04 +0000)
git-svn-id: https://svn.dealii.org/trunk@4777 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/common/scripts/report.pl

index 43a390914431bd5bb28d1a25602c4a8cd8e624d5..96aa3600919568aa3e7d09187b70bd5990fc573f 100644 (file)
@@ -55,13 +55,25 @@ for ($i=1;$i<$next_index;$i++)
 # finally output a table of results
 foreach $date (sort {$b cmp $a} keys %results)
 {
+    # if this is not the first iteration, and if the month has changed,
+    # then put in a break into the table to avoid overly long tables
+    # which browsers take infinitely long to render
+    $date ~ /\d+-(\d+)-\d+/;
+    $this_month = $2;
+    if ((defined $oldmonth) && ($this_month != $old_month)) {
+       print "</table>\n\n<table>\n"
+    }
+
     print "<tr><td>$date  ";
     foreach $name (sort keys %testcase)
     {
        $_ = $results{$date}{$name};
        print '<th> ', $_;
     }
-    print "\n";
+    print "</tr></td>\n";
+
+    # store old month name for the next iteration of the loop
+    $old_month = $this_month;
 }
 
 print << 'EOT'

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.