switched over to hashrate av to be more accurate when getting data

This commit is contained in:
UpstreamData
2022-05-13 15:31:32 -06:00
parent 714983cddc
commit 9c2de26182
4 changed files with 4 additions and 4 deletions

View File

@@ -168,7 +168,7 @@ class BMMiner(BaseMiner):
hr = summary.get("SUMMARY")
if hr:
if len(hr) > 0:
hr = hr[0].get("GHS 5s")
hr = hr[0].get("GHS av")
if hr:
data["Hashrate"] = round(hr / 1000, 2)

View File

@@ -287,7 +287,7 @@ class BOSMiner(BaseMiner):
hr = summary.get("SUMMARY")
if hr:
if len(hr) > 0:
hr = hr[0].get("MHS 5s")
hr = hr[0].get("MHS av")
if hr:
data["Hashrate"] = round(hr / 1000000, 2)

View File

@@ -118,7 +118,7 @@ class BTMiner(BaseMiner):
summary_data = summary.get("SUMMARY")
if summary_data:
if len(summary_data) > 0:
hr = summary_data[0].get("MHS 5s")
hr = summary_data[0].get("MHS av")
if hr:
data["Hashrate"] = round(hr / 1000000, 2)

View File

@@ -141,7 +141,7 @@ class CGMiner(BaseMiner):
hr = summary.get("SUMMARY")
if hr:
if len(hr) > 0:
hr = hr[0].get("GHS 5s")
hr = hr[0].get("GHS av")
if hr:
data["Hashrate"] = round(hr / 1000, 2)