m4rkw / minotaur-old

Minotaur miner
MIT License
4 stars 0 forks source link

Stats are wrong when period > 24 hours #17

Closed biesbjerg closed 6 years ago

biesbjerg commented 6 years ago

Default 24 hours looks fine:

[midas@localhost ~]$ minotaur --stats 24

stats for the last 24 hours:

 from: 2018-02-12 19:36:48
   to: 2018-02-13 19:30:58

total:    2.50 mBTC
        130.52  DKK

 rate:    2.51 mBTC/day
        131.05  DKK/day
       3931.65  DKK/month

income by algorithm:

equihash: 2.4200 mBTC  126.21 DKK
 x11gost: 0.0827 mBTC  4.31 DKK

Something is fishy when viewing 48 hour stats though. If total earnings in the last ~48 hours is 3.93 mBTC then surely the daily rate should be half of that, and not 3.95 mBTC.

[midas@localhost ~]$ minotaur --stats 48

stats for the last 48 hours:

 from: 2018-02-11 19:37:48
   to: 2018-02-13 19:30:58

total:    3.93 mBTC
        205.00  DKK

 rate:    3.95 mBTC/day
        205.98  DKK/day
       6179.35  DKK/month

income by algorithm:

       equihash: 3.2219 mBTC  168.03 DKK
        x11gost: 0.3280 mBTC  17.10 DKK
      neoscrypt: 0.2101 mBTC  10.96 DKK
daggerhashimoto: 0.1504 mBTC  7.84 DKK
        blake2s: 0.0119 mBTC  0.62 DKK
      lyra2rev2: 0.0085 mBTC  0.44 DKK
m4rkw commented 6 years ago

fixed in master