🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #5904

Re: Monitoring quantity with INN

#5904
From: Andy Clews
Date: Fri, 22 Mar 1996 00:00
51 lines
2330 bytes
And lo, thus spake Daryl Gaumer unto the assembled multitudes:
> : Any suggestions or advice would be appreciated. E-mail or followup would be
> : equally welcome, but followup might be better for the benefit of others.

> The following is from my newsfeeds file:

>    TALLY:*:Tf,Wnb:/usr/mail/darylg-sandbox/tally/tally

> I use the tally.driver (which calls tallyho) to process the file file into
> usable information.  A reference on where to get them was posted a while
> ago.  I don't remember where I pulled them.

> The output generated by tallyho looks like this:

>      Hierarchy   Kbytes  # arts.   Kb/art
>    
>          Total  1577415   119852   13.161
>    
>            alt  1408734    47729   29.515

Ye gods! I hope the above isn't a DAILY total :-) If it is, thank heavens
my site has been rejecting all new alt groups for the last 18 months, is
all I can say.

The version of tallyho that I obtained (thanks to Tod Pike) has a 'Percent'
column after the Kb/art column:

	Hierarchy   Kbytes  # arts.   Kb/art  Percent
 
	    Total   104694    37933    2.760   100.00
 
	      alt    43276     7192    6.017    41.34

(The percentage being that of number of Kbytes in each group against the
total)

The code changes necessary on the appropriate lines to do this are (be
careful of folded lines here):

printf "%40.40s %8s %8s %8s %8s\n\n", "Hierarchy", "Kbytes", "# arts.","Kb/art","Percent"
printf "%40.40s %8d %8d %8.3f %8.2f\n\n", "TOTAL", n, nc, n / nc, 100;

printf "%40.40s %8d %8d %8.3f %8.2f\n", i, h[i], hc[i], h[i]/hc[i],(h[i]/n)*100; 


-- 
Andy Clews, Computing Service, University of Sussex, Brighton BN1 9QJ,  UK
			Email:   A.Clews@sussex.ac.uk


Technical Details
Message-ID: <4iu78s$br0@infa.central.susx.ac.uk>
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
References: <4i46ur$2ns@infa.central.susx.ac.uk> <4i54rb$lp2@hpax.cup.hp.com>

Show Full Headers
Complete Article Headers
Message-ID: <4iu78s$br0@infa.central.susx.ac.uk>
Subject: Re: Monitoring quantity with INN
Date: Fri, 22 Mar 1996 00:00:00 +0000
From: andy@central.susx.ac.uk (Andy Clews)
References: <4i46ur$2ns@infa.central.susx.ac.uk> <4i54rb$lp2@hpax.cup.hp.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: 143722010
Distribution: inet
Organization: University of Sussex
Newsgroups: news.software.nntp