fixed formatting on hashrate

This commit is contained in:
UpstreamData
2022-05-05 12:07:57 -06:00
parent b756c9e4a1
commit 1b22810f4b
7 changed files with 44 additions and 13 deletions

View File

@@ -163,7 +163,7 @@ class BMMiner(BaseMiner):
for item in ["temp2", "temp1", "temp3"]:
temperature = temp[1].get(item)
if temperature and not temperature == 0.0:
data["Temperature"] = temperature
data["Temperature"] = round(temperature)
if pools:
pool_1 = None

View File

@@ -272,7 +272,7 @@ class BOSMiner(BaseMiner):
if len(temp) > 0:
temp = temp[0].get("Chip")
if temp:
data["Temperature"] = round(temp, 2)
data["Temperature"] = round(temp)
if pools:
pool_1 = None

View File

@@ -122,7 +122,7 @@ class BTMiner(BaseMiner):
for board in temp_data:
temp = board.get("Chip Temp Avg")
if temp and not temp == 0.0:
data["Temperature"] = temp
data["Temperature"] = round(temp)
break
if pools:

View File

@@ -138,7 +138,7 @@ class CGMiner(BaseMiner):
for item in ["temp2", "temp1", "temp3"]:
temperature = temp[1].get(item)
if temperature and not temperature == 0.0:
data["Temperature"] = temperature
data["Temperature"] = round(temperature)
if pools:
pool_1 = None