INN commit: branches/2.5/scripts (innreport_inn.pm)

INN Commit rra at isc.org
Wed Dec 16 22:11:07 UTC 2009


    Date: Wednesday, December 16, 2009 @ 14:11:07
  Author: iulius
Revision: 8848

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:
  branches/2.5/scripts/innreport_inn.pm

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

Modified: innreport_inn.pm
===================================================================
--- innreport_inn.pm	2009-12-16 22:10:24 UTC (rev 8847)
+++ innreport_inn.pm	2009-12-16 22:11:07 UTC (rev 8848)
@@ -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