1
0
Fork 0
mirror of https://github.com/munin-monitoring/contrib.git synced 2025-07-22 22:25:23 +00:00

Plugin ethermine_hashrate_: fix code style issues reported by flake8

This commit is contained in:
Lars Kruse 2019-08-14 00:29:25 +02:00
parent 275c82f479
commit c466adc4d3
2 changed files with 5 additions and 5 deletions

View file

@ -20,8 +20,8 @@ ethermine_hashrate_<YOUR_PUBLIC_ETHEREUM_ADDRESS>_<YOUR_RIG_NAME>
=head1 INTERPRETATION =head1 INTERPRETATION
This plugin shows the ethermine.org mining pool hashrate (MH/s) of a given ethereum address and rig name. This plugin shows the ethermine.org mining pool hashrate (MH/s) of a given ethereum address and rig
Hashrate is queried via ethermine.org API L<https://ethermine.org>. name. Hashrate is queried via ethermine.org API L<https://ethermine.org>.
=head1 VERSION =head1 VERSION
@ -102,11 +102,12 @@ except ValueError:
try: try:
workers = mining_stats['workers'] workers = mining_stats['workers']
except: except KeyError:
print("JSON result error!", file=sys.stderr) print("JSON result error!", file=sys.stderr)
sys.exit(9) sys.exit(9)
# ethermine.org sometimes has caching errors. You can see data from other miner. Always check your rig name. # ethermine.org sometimes has caching errors. You can see data from other miner. Always check your
# rig name.
for worker in workers: for worker in workers:
if workers[worker]['worker'] == miner: if workers[worker]['worker'] == miner:
hash_rate = workers[worker]['hashrate'] hash_rate = workers[worker]['hashrate']

View file

@ -60,7 +60,6 @@ plugins/cpu/process_count
plugins/cpu/process_cpushare plugins/cpu/process_cpushare
plugins/currency/bitcoin/slush_hashrate_ plugins/currency/bitcoin/slush_hashrate_
plugins/currency/bitcoin/slush_reward_ plugins/currency/bitcoin/slush_reward_
plugins/currency/ethereum/ethermine_hashrate_
plugins/currency/nanopool/nanopool_ plugins/currency/nanopool/nanopool_
plugins/currency/zcash/zcash_flypool_hashrate_ plugins/currency/zcash/zcash_flypool_hashrate_
plugins/cyrus/cyrus-imapd plugins/cyrus/cyrus-imapd