From: Ian Jackson Date: Fri, 28 May 2010 21:14:36 +0000 (+0100) Subject: more work on stats report X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=5a32168a9094568de147786f171e70e8587ca478;p=innduct.git more work on stats report --- diff --git a/innduct-stats-report b/innduct-stats-report index 653a8f7..391dac1 100755 --- a/innduct-stats-report +++ b/innduct-stats-report @@ -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) } .