Article View: news.software.nntp
Article #16831Re: innlog.pl incorrectly parses some innfeed log entries
From: Don Lewis
Date: Wed, 09 Apr 1997 00:00
Date: Wed, 09 Apr 1997 00:00
45 lines
2010 bytes
2010 bytes
In article <5ibrge$o53$1@news.gv.tsc.tdk.com>,
Don Lewis <gdonl@tsc.tdk.com> wrote:
>innfeed has two different peer checkpoint/final log formats. When
>it is running normally, it logs:
[ deleted ]
>innlog.pl does not distinguish between these two formats (it just looks for
>"checkpoint" or "final"), and adds the number of spooled articles to the
>offered article count.
[ patch deleted ]
Oh bother. That'll teach me to post a patch before testing it. Here's
a patch that actually works correctly:
*** innlog.pl- Tue Apr 8 15:54:48 1997
--- innlog.pl Tue Apr 8 15:54:48 1997
***************
*** 640,645 ****
--- 640,646 ----
}
if ($Fld[7] eq "checkpoint") {
next if $colon;
+ next if $Fld[10] ne "offered";
$cp_innfeed_seconds{$host} = $Fld[9];
$cp_innfeed_offered{$host} = $Fld[11];
$cp_innfeed_accepted{$host} = $Fld[13];
***************
*** 660,665 ****
--- 661,667 ----
}
if ($Fld[7] eq "final") {
next if $colon;
+ next if $Fld[10] ne "offered";
$innfeed_seconds{$host} += $Fld[9];
$innfeed_offered{$host} += $Fld[11];
$innfeed_accepted{$host} += $Fld[13];
--
Don "Truck" Lewis TDK Semiconductor
Internet: Don.Lewis@tsc.tdk.com 138 New Mohawk Road
Phone: +1 916 478-8284 FAX: +1 916 478-8251 Nevada City, CA 95959
Technical Details
Message-ID:
<5ih15f$4js$1@news.gv.tsc.tdk.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mailReferences:
<5ibrge$o53$1@news.gv.tsc.tdk.com>Show Full Headers
Complete Article Headers
Message-ID: <5ih15f$4js$1@news.gv.tsc.tdk.com> Subject: Re: innlog.pl incorrectly parses some innfeed log entries Date: Wed, 09 Apr 1997 00:00:00 +0000 From: gdonl@tsc.tdk.com (Don Lewis) References: <5ibrge$o53$1@news.gv.tsc.tdk.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail X-Deja-AN: 231884685 Organization: TDK Semiconductor, Nevada City CA Newsgroups: news.software.nntp