chiark / gitweb /
more work on stats report
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 28 May 2010 21:14:36 +0000 (22:14 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 28 May 2010 21:14:36 +0000 (22:14 +0100)
innduct-stats-report

index 653a8f7..391dac1 100755 (executable)
@@ -50,13 +50,14 @@ while (<>) {
            die "$_ // $strs ?";
        }
     }
-    
 #    print "$site|";
 #    foreach my $k (sort keys %$c) { printf " %s=%d", $k, $c->{$k}; }
 #    print "\n";
-#print Dumper(\%counts);;
 }
 
+#print STDERR Dumper(\%counts);;
+
 our $cwr;
 our $site;
 
@@ -83,12 +84,12 @@ format STDOUT_TOP =
 offrd acctd unwtd rejtd ac% rj% nochk nc% 
 .
 format STDOUT =
-@>>>> @>>>> @>>>> @>>>> ^## ^## @>>>> ^## @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
+@>>>> @>>>> @>>>> @>>>> ^## ^## @>>>> ^## @<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<...
 { (map { amt($cwr->{$_}) } qw(offered accepted unwanted rejected)),
   (map { pct($cwr->{$_}, $cwr->{offered}) } qw(accepted rejected)),
   ($cwr->{offered_nc} ? (amt($cwr->{offered_nc}),
                         pct($cwr->{offered_nc}, $cwr->{offered}))
-                      : '',undef),
-  ($site);
+                      : ('',undef)),
+  ($site)
   }
 .