ckolivas/cgminer — pull request #379 by hackjealousy (2013-01-02 18:56:38+00:00)
Title: Fairly interesting statistics that can be included in status

I've been messing around with PoT at Ozcoin and I added some statistics to the status lines (details below) that I wanted to know.

It occurred to me that these statistics might be useful to others and I should submit the patch to you.

Please feel free to use anything (or not) in the patch. I'd be glad to change it if you want to include just parts. (Also feel free to use the ideas and not the code if you want as well!)

stats:
avg seconds / block; number of blocks in last hour, 24 hours
avg shares / second; shares in last minute, 30 minutes, hour, 24 hours
zero-fee PPS value; PPS in last 30 minutes, hour, and 24 hours
zero-fee POT value; POT in last 30 minutes, hour, and 24 hours; best POT share and value
best share difficulty, average share difficulty, average target difficulty

Individual "Accepted" messages show decimal estimate of share and target difficulty. (Rather than int.)