X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?p=innduct.git;a=blobdiff_plain;f=innduct-stats-report;fp=innduct-stats-report;h=391dac1b3806764b910ec1b71c54220bbb2065c2;hp=653a8f7a1dfb6d6941c0ba60ca5216adf0205083;hb=5a32168a9094568de147786f171e70e8587ca478;hpb=12629a26c20d3c5c00b4f71f5c73c304031a303b 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) } .