mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Plugin btcguild_hashrate_: fix code style issues reported by flake8
This commit is contained in:
parent
ba732fd7ec
commit
275c82f479
2 changed files with 3 additions and 5 deletions
|
@ -17,8 +17,8 @@ command = ''
|
|||
if len(sys.argv) > 1:
|
||||
command = sys.argv[1]
|
||||
|
||||
header = {'User-Agent':'Mozilla/5.0'}
|
||||
request = urllib2.Request(STATS,headers=header)
|
||||
header = {'User-Agent': 'Mozilla/5.0'}
|
||||
request = urllib2.Request(STATS, headers=header)
|
||||
mining_stats_raw = urllib2.urlopen(request)
|
||||
mining_stats = json.load(mining_stats_raw)
|
||||
workers = mining_stats['workers']
|
||||
|
@ -38,4 +38,3 @@ for worker in workers:
|
|||
hash_rate = workers[worker]['hash_rate']
|
||||
label = workers[worker]['worker_name']
|
||||
print label + ".value %d" % int(hash_rate)
|
||||
|
||||
|
|
|
@ -58,7 +58,6 @@ plugins/cpu/cpuutil
|
|||
plugins/cpu/multicpu1sec
|
||||
plugins/cpu/process_count
|
||||
plugins/cpu/process_cpushare
|
||||
plugins/currency/bitcoin/btcguild_hashrate_
|
||||
plugins/currency/bitcoin/slush_hashrate_
|
||||
plugins/currency/bitcoin/slush_reward_
|
||||
plugins/currency/ethereum/ethermine_hashrate_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue