Post
Topic
Board Mining software (miners)
Re: [ANN] Eloipool - FAST Python3 pool server software - GBT/stratum/dyntarget/proxy
by
whitehathacker
on 04/03/2014, 07:06:55 UTC
I can't comment on the error, I've never seen it.

As for the calculation of speed (in php even):
Code:
$shares = 200; //Number of shares of a given time.
$timeLen = 10; //The given time in seconds.


$hashrate = pow(2, 32) * $shares / $timeLen;         //85899345920
$hashrate = $hashrate / 1000000000;                   //85.899345920
$hashrate = round($hashrate, 2);                        //85.9

returns 85.9 which is 85.9 Gh/s

1000000000 could be changed to:
1000000000000 for Th/s
1000000 for Mh/s
1000 for Kh/s

However if using VarDiff you need to modify your DB and config.py to log the Minimum difficulty of each share a 2 diff share = 2 shares, 32 diff = 32 shares.

Or you can join my pool... just saying.
NoctumDesign

Thats awesome, I appreciate that. How are you pulling shares per time length though? I understand grabbing a specific item in a column in a table, but over a specific time frame? Are you doing a comparison with the time column?

EDIT: Here's a new one for you:

Code:
42014-03-04 00:02:36,648 sharelogging.logfile    CRITICAL        Traceback (most recent call last):
  File "/eloipool/sharelogging/logfile.py", line 54, in run
    self.flushlog()
  File "/eloipool/sharelogging/logfile.py", line 46, in flushlog
    with open(self.fn, "a") as logfile:
IOError: [Errno 2] No such file or directory: 'share-logfile'