feature: add nominal_hashrate to miner data

This commit is contained in:
UpstreamData
2023-01-27 09:41:25 -07:00
parent c4b4fa293d
commit 85d7f0abfb
12 changed files with 138 additions and 0 deletions

View File

@@ -47,6 +47,7 @@ class MinerData:
fw_ver: The current firmware version on the miner as a str.
hostname: The network hostname of the miner as a str.
hashrate: The hashrate of the miner in TH/s as a float.
nominal_hashrate: The factory nominal hashrate of the miner in TH/s as a float.
left_board_hashrate: The hashrate of the left board of the miner in TH/s as a float.
center_board_hashrate: The hashrate of the center board of the miner in TH/s as a float.
right_board_hashrate: The hashrate of the right board of the miner in TH/s as a float.
@@ -91,6 +92,7 @@ class MinerData:
fw_ver: str = "Unknown"
hostname: str = "Unknown"
hashrate: float = 0
nominal_hashrate: float = 0
hashboards: List[HashBoard] = field(default_factory=list)
ideal_hashboards: int = 1
left_board_hashrate: float = field(init=False)