Skip to content

Commit

Permalink
get up_time when class instantiated
Browse files Browse the repository at this point in the history
  • Loading branch information
barlaensdoonn committed Aug 3, 2017
1 parent 4434bfc commit 4244e00
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ewbf_miner.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/local/bin/python3
# ewbf zec miner api monitor
# 6/22/17
# updated 7/30/17
# updated 8/3/17

# NOTE: temp, gpu_power_usage, speed_sps updated by api every 30 seconds
# NOTE: to properly average values this script should be launched shortly after miner starts
Expand Down Expand Up @@ -57,6 +57,8 @@ def __init__(self, url, name):
'shares_per_min': 0
}

self._get_up_time()

def _initialize_logger(self):
self.logger = logging.getLogger('ewbf')
self.logger.info('* * * * * * * * * * * * * * * * * * * *')
Expand Down

0 comments on commit 4244e00

Please sign in to comment.