Thread View: news.software.nntp
1 messages
1 total messages
Started by John Line
Sat, 07 Sep 1996 00:00
flowstats V1.5.2 (bug fix update) available - patch enclosed here
Author: John Line
Date: Sat, 07 Sep 1996 00:00
Date: Sat, 07 Sep 1996 00:00
80 lines
4578 bytes
4578 bytes
I recently discovered, by chance, an embarrassing bug in the data-gathering
component of my "flowstats" package (INN channel script to gather news
volume data and scripts to summarise the information, written in perl).
A patch is enclosed below, for correcting flowsum.channel from the V1.5.1
distribution kit; a similar modification should be appropriate for most or
all earlier versions, but I haven't checked that. You'll need to restart the
flowstats channel feed after applying the patch; watch innd's error log, in
case anything goes wrong and the script fails to run properly and innd just
restarts the feed endlessly. [Save a copy of the original script "just in
case"!]
The full kit, with corrected version of flowsum.channel is available via
Dave Barr's INN web page at URL http://www.math.psu.edu/barr/INN.html, or
directly as ftp://ftp.math.psu.edu/pub/INN/contrib/flowstats-1.5.2.tar.gz.
That's really only relevant to people who hadn't heard of flowstats or have
only an older version - the only change is to correct the bug (and mention
that in the documentation).
The problem (this will only make sense to people already using flowstats!)
meant that the secondary totals were not calculated in the way intended in
the case where $ACTIVE_ONLY is true (default) and articles are received
which are cross-posted to groups not in active. The overall secondary totals
were expected to be approximately the same as the primary totals, but
a variety of factors meant that in early versions the agreement would only
be approximate (and at the time $ACTIVE_ONLY was introduced, *very*
approximate), and until about a year ago, the bug had only a limited effect.
Hence it managed to go unnoticed.
Since then, ridiculously wide cross-posting to all manner of obscure groups
has become commonplace, and depending on which groups you receive (and their
readers' tendency to cross-post) the secondary figures may be low by as much
as 5-10% on average, compared to the primary totals, due to the article
counts and sizes being shared across all the groups in the Newsgroups: line,
instead of just those in the active file as intended. Since the overall
totals in the reports are based on the secondary figures (for good reasons,
historically speaking; I plan to report both primary and secondary totals in
future versions), they will also be low to the same extent. Re-analysing the
old data files with scripts modified to report the primary totals would be a
way to get more realistic overall article counts and volumes, but since the
error was at the data collection stage, there's no way to correct the
secondary information retrospectively.
John Line
======== here is the patch =====
*** ../flowstats-1.5.1/flowsum.channel Thu Mar 21 22:12:16 1996
--- flowsum.channel Mon Aug 26 10:17:51 1996
***************
*** 71,76 ****
--- 71,79 ----
# (John.Line@ucs.cam.ac.uk). Original C-news version.
#
# Modified:
+ # 25-Aug-1996 JML V1.5.2: Correct newsgroup count for cross-posted
+ # articles where $ACTIVE_ONLY and one or more groups
+ # not in active.
# 21-Mar-1996 JML V1.5.1: remove debugging "if ... { warn ... }" which
# might write a lot of output to the INN error log.
# 17-Feb-1996 JML V1.5: coordinate version for snapshot release.
***************
*** 465,470 ****
--- 468,474 ----
}
}
@newsgroups = @ok_groups;
+ $ngroups = @newsgroups; # may be reduced by groups not in active
}
foreach $group (@newsgroups)
======== end of patch
--
John Line - Cambridge University Computing Service, Computer Laboratory,
New Museums Site, Pembroke Street, Cambridge CB2 3QG, England.
Internet: jml4@cus.cam.ac.uk Phone: +44 1223 334708 FAX: +44 1223 334679
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads