more D10 updates

This commit is contained in:
JP
2024-12-18 21:44:20 -05:00
committed by Brett Rowan
parent 3427a8d15a
commit c1a01b5f7b
2 changed files with 4 additions and 3 deletions

View File

@@ -229,7 +229,7 @@ class BlackMiner(StockFirmware):
hashrate = boards[1].get(f"chain_rate{i}")
if hashrate:
hashboard.hashrate = self.algo.hashrate(
rate=float(hashrate), unit=self.algo.unit.GH
rate=float(hashrate), unit=self.algo.unit.MH
).into(self.algo.unit.default)
chips = boards[1].get(f"chain_acn{i}")
@@ -356,11 +356,11 @@ class BlackMiner(StockFirmware):
if rpc_stats is not None:
try:
expected_rate = rpc_stats["STATS"][1]["total_rateideal"]
expected_rate = self.expected_hashrate
try:
rate_unit = rpc_stats["STATS"][1]["rate_unit"]
except KeyError:
rate_unit = "GH"
rate_unit = "MH"
return self.algo.hashrate(
rate=float(expected_rate), unit=self.algo.unit.from_str(rate_unit)
).into(self.algo.unit.default)

View File

@@ -3,4 +3,5 @@ from pyasic.miners.device.models import D10
class HammerD10(BlackMiner, D10):
expected_hashrate = 5000
pass