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

@@ -108,7 +108,7 @@ class CGMiner(BaseMiner):
"Model": "Unknown",
"Hostname": "Unknown",
"Hashrate": 0,
"Temperature": 0,
"Temp": 0,
"Pool User": "Unknown",
"Wattage": 0,
"Split": 0,
@@ -154,7 +154,7 @@ class CGMiner(BaseMiner):
for item in ["temp2", "temp1", "temp3"]:
temperature = temp[1].get(item)
if temperature and not temperature == 0.0:
data["Temperature"] = round(temperature)
data["Temp"] = round(temperature)
if pools:
pool_1 = None