INN commit: trunk/scripts (innreport_inn.pm)

INN Commit rra at isc.org
Wed Dec 16 22:08:53 UTC 2009


    Date: Wednesday, December 16, 2009 @ 14:08:53
  Author: iulius
Revision: 8846

Fix a bug in the daily Usenet report:  a few lines did not
appear in the report whereas the total still took them
into account.  These lines do not appear when the peer
does not respond during the whole day.  They now appear
(and every article is marked as spooled).

Modified:
  trunk/scripts/innreport_inn.pm

------------------+
 innreport_inn.pm |    3 +++
 1 file changed, 3 insertions(+)

Modified: innreport_inn.pm
===================================================================
--- innreport_inn.pm	2009-12-16 22:06:59 UTC (rev 8845)
+++ innreport_inn.pm	2009-12-16 22:08:53 UTC (rev 8846)
@@ -966,6 +966,9 @@
     if ($left =~ /(\S+) final seconds (\d+) spooled (\d+)/o) {
       my ($server, $seconds, $spooled) = ($1, $2, $3);
       $server = lc $server unless $CASE_SENSITIVE;
+      # Initialize a value for that key (otherwise, it does not appear in the
+      # report, and the total line is wrong).
+      $innfeed_offered{$server} += 0;
       $innfeed_seconds{$server} += $seconds;
       $innfeed_spooled{$server} += $spooled;
       return 1;




More information about the inn-committers mailing list