format: remove vestigial elements of btminer
This commit is contained in:
@@ -375,34 +375,6 @@ class BTMiner(BaseMiner):
|
||||
)
|
||||
data.hashboards.append(temp_board)
|
||||
|
||||
# if devs:
|
||||
# temp_data = devs.get("DEVS")
|
||||
# if temp_data:
|
||||
# board_map = {0: "left_board", 1: "center_board", 2: "right_board"}
|
||||
# for board in temp_data:
|
||||
# _id = board["ASC"]
|
||||
# chip_temp = round(board["Chip Temp Avg"])
|
||||
# board_temp = round(board["Temperature"])
|
||||
# hashrate = round(board["MHS 1m"] / 1000000, 2)
|
||||
# setattr(data, f"{board_map[_id]}_chip_temp", chip_temp)
|
||||
# setattr(data, f"{board_map[_id]}_temp", board_temp)
|
||||
# setattr(data, f"{board_map[_id]}_hashrate", hashrate)
|
||||
#
|
||||
# if devs:
|
||||
# boards = devs.get("DEVS")
|
||||
# if boards:
|
||||
# if len(boards) > 0:
|
||||
# board_map = {0: "left_chips", 1: "center_chips", 2: "right_chips"}
|
||||
# if "ID" in boards[0].keys():
|
||||
# id_key = "ID"
|
||||
# else:
|
||||
# id_key = "ASC"
|
||||
# offset = boards[0][id_key]
|
||||
# for board in boards:
|
||||
# _id = board[id_key] - offset
|
||||
# chips = board["Effective Chips"]
|
||||
# setattr(data, board_map[_id], chips)
|
||||
|
||||
if pools:
|
||||
pool_1 = None
|
||||
pool_2 = None
|
||||
|
||||
Reference in New Issue
Block a user