switched over to hashrate av to be more accurate when getting data
This commit is contained in:
@@ -168,7 +168,7 @@ class BMMiner(BaseMiner):
|
|||||||
hr = summary.get("SUMMARY")
|
hr = summary.get("SUMMARY")
|
||||||
if hr:
|
if hr:
|
||||||
if len(hr) > 0:
|
if len(hr) > 0:
|
||||||
hr = hr[0].get("GHS 5s")
|
hr = hr[0].get("GHS av")
|
||||||
if hr:
|
if hr:
|
||||||
data["Hashrate"] = round(hr / 1000, 2)
|
data["Hashrate"] = round(hr / 1000, 2)
|
||||||
|
|
||||||
|
|||||||
@@ -287,7 +287,7 @@ class BOSMiner(BaseMiner):
|
|||||||
hr = summary.get("SUMMARY")
|
hr = summary.get("SUMMARY")
|
||||||
if hr:
|
if hr:
|
||||||
if len(hr) > 0:
|
if len(hr) > 0:
|
||||||
hr = hr[0].get("MHS 5s")
|
hr = hr[0].get("MHS av")
|
||||||
if hr:
|
if hr:
|
||||||
data["Hashrate"] = round(hr / 1000000, 2)
|
data["Hashrate"] = round(hr / 1000000, 2)
|
||||||
|
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ class BTMiner(BaseMiner):
|
|||||||
summary_data = summary.get("SUMMARY")
|
summary_data = summary.get("SUMMARY")
|
||||||
if summary_data:
|
if summary_data:
|
||||||
if len(summary_data) > 0:
|
if len(summary_data) > 0:
|
||||||
hr = summary_data[0].get("MHS 5s")
|
hr = summary_data[0].get("MHS av")
|
||||||
if hr:
|
if hr:
|
||||||
data["Hashrate"] = round(hr / 1000000, 2)
|
data["Hashrate"] = round(hr / 1000000, 2)
|
||||||
|
|
||||||
|
|||||||
@@ -141,7 +141,7 @@ class CGMiner(BaseMiner):
|
|||||||
hr = summary.get("SUMMARY")
|
hr = summary.get("SUMMARY")
|
||||||
if hr:
|
if hr:
|
||||||
if len(hr) > 0:
|
if len(hr) > 0:
|
||||||
hr = hr[0].get("GHS 5s")
|
hr = hr[0].get("GHS av")
|
||||||
if hr:
|
if hr:
|
||||||
data["Hashrate"] = round(hr / 1000, 2)
|
data["Hashrate"] = round(hr / 1000, 2)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user