bug: fix mara fw hashrate scaling.

This commit is contained in:
Upstream Data
2024-04-30 14:32:43 -06:00
parent 341cc13d83
commit 30216fdd5b

View File

@@ -172,7 +172,7 @@ class MaraMiner(BaseMiner):
try:
for hb in web_hashboards["hashboards"]:
idx = hb["index"]
hashboards[idx].hashrate = hb["hashrate_average"]
hashboards[idx].hashrate = round(hb["hashrate_average"] / 1000, 2)
hashboards[idx].temp = round(
sum(hb["temperature_pcb"]) / len(hb["temperature_pcb"]), 2
)