feature: sum hashrate in MinerData from hashboards, with the hashrate item being a backup.

This commit is contained in:
UpstreamData
2023-04-13 14:26:03 -06:00
parent 05e82b85c5
commit 853756ebcb
2 changed files with 12 additions and 2 deletions

View File

@@ -69,7 +69,6 @@ class HiveonT9(Hiveon, T9):
try:
hashrate += api_stats["STATS"][1][f"chain_rate{chipset}"]
chips += api_stats["STATS"][1][f"chain_acn{chipset}"]
print(chips)
except (KeyError, IndexError):
pass
hashboard.hashrate = round(hashrate / 1000, 2)