Post
Topic
Board Pools
Re: [400GH/s] p2pool: Decentralized, DoS-resistant, Hop-Proof pool
by
paulkoan
on 24/11/2012, 21:18:43 UTC

Code:
5 0 * * * twidge dmsend paulkoan "$(cat /path/to/p2pool/log | grep $(date -d '1 day ago' +%Y-%m-%d) | grep -c SHARE) Shares, $(cat /path/to/p2pool/log | grep $(date -d '1 day ago' +%Y-%m-%d) | grep -c BLOCK) Blocks"


Hmm, seems this doesn't work because p2pool cycles the log at a frequency greater than once a day.  Does anyone know how to lengthen the time p2pool keeps logs?

Hmm that's odd, my logs never cycle, but maybe that is windows thing.


It is in the source, in logger.py.   But that is fine, I now extract the SHARE|BLOCK lines from the log periodically, and save them into a separate file, and then run the scan against those.