fixed a bug with temp not displaying on the cfg tool
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user