bug: fix auradine hashboards.
This commit is contained in:
@@ -262,12 +262,13 @@ class Auradine(BaseMiner):
|
|||||||
|
|
||||||
if api_devs is not None:
|
if api_devs is not None:
|
||||||
try:
|
try:
|
||||||
for board in api_devs["DEVS"][0]:
|
for board in api_devs["DEVS"]:
|
||||||
b_id = board["ID"]
|
b_id = board["ID"] - 1
|
||||||
hashboards[b_id].hashrate = round(
|
hashboards[b_id].hashrate = round(
|
||||||
float(float(board["MHS 5s"]) / 1000000), 2
|
float(float(board["MHS 5s"]) / 1000000), 2
|
||||||
)
|
)
|
||||||
hashboards[b_id].temp = round(float(float(board["Temperature"])), 2)
|
hashboards[b_id].temp = round(float(float(board["Temperature"])), 2)
|
||||||
|
hashboards[b_id].missing = False
|
||||||
except LookupError:
|
except LookupError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -275,7 +276,7 @@ class Auradine(BaseMiner):
|
|||||||
try:
|
try:
|
||||||
for board, sn in enumerate(web_ipreport["IPReport"][0]["HBSerialNo"]):
|
for board, sn in enumerate(web_ipreport["IPReport"][0]["HBSerialNo"]):
|
||||||
hashboards[board].serial_number = sn
|
hashboards[board].serial_number = sn
|
||||||
|
hashboards[board].missing = False
|
||||||
except LookupError:
|
except LookupError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user