[RC5] PHP Stats Program

Dmitri Gribenko gribozavr at voliacable.com
Sat Mar 26 01:22:33 EST 2005


Hi!

You may want to take a look at my script. It doesn't parse the log file,
but takes the stats from
http://stats.distributed.net/participant/phistory_raw.php?project_id=8&id=YOUR_ID.
Script is written in perl. What it does:
1. Downloads the "raw stats"
2. Computes some interesting values: total blocks, active days, inactive
days, best day, best rate, daily, weekly and total keyrates etc.
3. Saves the data in some file in /tmp
4. Outputs a gnuplot script to stdout.
To run the script:
$ ./rc5_stats.pl | gnuplot

You can get the script here: http://gribozavr.narod.ru/rc5_stats.pl
The output: http://gribozavr.narod.ru/stats.html (script doesn't create
html file, it was created for the pleasure of viewing).

What about your script, i have two suggestions: it wold be better to
make the table of months horizontal rather than vertical: graph wold
have looked more natural. It would be also good to plot the keyrates
(especially weekly and total).

Dmitri Gribenko

-- 
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCM/CS/IT/M/S d++ s+:- a---- C++++>$ UL+++>++++$ P+++>$
L+++>++++$ E--- W+++ N o? K? w--- O+ !M V? PS++ PE- Y+ PGP>++
t? 5? X R- tv- b+ !DI D- G++ e- h!(*) r !y
------END GEEK CODE BLOCK------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 256 bytes
Desc: OpenPGP digital signature
Url : http://lists.distributed.net/pipermail/rc5/attachments/20050326/b1c0e4f6/signature.bin


More information about the rc5 mailing list