From 5de8fc064ec31af3d730fad64f541eefec278ccc Mon Sep 17 00:00:00 2001 From: UpstreamData Date: Tue, 12 Jul 2022 11:58:21 -0600 Subject: [PATCH] fix a bug with hashrate parsing on braiins os devices with kh hashrates --- pyasic/miners/_backends/bosminer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyasic/miners/_backends/bosminer.py b/pyasic/miners/_backends/bosminer.py index 6dd282f5..d44d1023 100644 --- a/pyasic/miners/_backends/bosminer.py +++ b/pyasic/miners/_backends/bosminer.py @@ -443,7 +443,7 @@ class BOSMiner(BaseMiner): offset = 6 if boards[0]["ID"] in [6, 7, 8] else boards[0]["ID"] for board in boards: _id = board["ID"] - offset - hashrate = board["MHS 1m"] + hashrate = round(board["MHS 1m"] / 1000000, 2) setattr(data, board_map[_id], hashrate) return data