Skip to content

Commit

Permalink
A fix for low hashrates being reported on start of ppagent.
Browse files Browse the repository at this point in the history
  • Loading branch information
icook committed Mar 18, 2014
1 parent 240eb6b commit 53fec0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ppagent/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def reset_timers(self):
now = int(time.time())
for coll in self.collectors.values():
interval = coll['interval']
coll['next_run'] = ((now // interval) * interval)
coll['next_run'] = ((now // interval) * interval) + interval

@property
def worker(self):
Expand Down Expand Up @@ -227,7 +227,7 @@ def call_devs(self):
mhs = [round(now['Total MH'] - last['Total MH'], 3)
for now, last in zip(data['DEVS'], self.last_devs)]
else:
mhs = [d.get('MHS 5s') for d in data['DEVS'] if 'MHS 5s' in d]
mhs = []
self.last_devs = data['DEVS']
return mhs, temps, details

Expand Down

0 comments on commit 53fec0c

Please sign in to comment.