Skip to content
This repository was archived by the owner on Jul 6, 2026. It is now read-only.

Commit 850656f

Browse files
committed
bug: fix elphapex hashboard parsing
1 parent 8bb35d6 commit 850656f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pyasic/miners/backends/elphapex.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,9 +233,10 @@ async def _get_hashboards(self, web_stats: dict | None = None) -> List[HashBoard
233233
board_temp_data = list(
234234
filter(lambda x: not x == 0, board["temp_pcb"])
235235
)
236-
hashboards[board["index"]].temp = sum(board_temp_data) / len(
237-
board_temp_data
238-
)
236+
if not len(board_temp_data) == 0:
237+
hashboards[board["index"]].temp = sum(board_temp_data) / len(
238+
board_temp_data
239+
)
239240
chip_temp_data = list(
240241
filter(lambda x: not x == "", board["temp_chip"])
241242
)

0 commit comments

Comments
 (0)