fixed a bug with temp not displaying on the cfg tool

This commit is contained in:
UpstreamData
2022-05-18 12:50:44 -06:00
parent 7f7964526c
commit ed89476866
4 changed files with 10 additions and 10 deletions

View File

@@ -247,7 +247,7 @@ class BOSMiner(BaseMiner):
"Model": "Unknown",
"Hostname": "Unknown",
"Hashrate": 0,
"Temperature": 0,
"Temp": 0,
"Pool User": "Unknown",
"Wattage": 0,
"Total": 0,
@@ -298,9 +298,9 @@ class BOSMiner(BaseMiner):
temp = temps.get("TEMPS")
if temp:
if len(temp) > 0:
temp = temp[0].get("Chip")
if temp:
data["Temperature"] = round(temp)
chip_temp = temp[0].get("Chip")
if chip_temp:
data["Temp"] = round(chip_temp)
if pools:
pool_1 = None