bug: fix improper stats key when getting uptime.

This commit is contained in:
UpstreamData
2023-06-27 16:23:21 -06:00
parent 96d9fe8e6c
commit 64c473a7d4
4 changed files with 5 additions and 5 deletions

View File

@@ -257,7 +257,7 @@ class AntminerModern(BMMiner):
if api_stats:
try:
return int(api_stats["STATS"][0]["Elapsed"])
return int(api_stats["STATS"][1]["Elapsed"])
except LookupError:
pass
@@ -502,6 +502,6 @@ class AntminerOld(CGMiner):
if api_stats:
try:
return int(api_stats["STATS"][0]["Elapsed"])
return int(api_stats["STATS"][1]["Elapsed"])
except LookupError:
pass

View File

@@ -370,6 +370,6 @@ class BMMiner(BaseMiner):
if api_stats:
try:
return int(api_stats["STATS"][0]["Elapsed"])
return int(api_stats["STATS"][1]["Elapsed"])
except LookupError:
pass

View File

@@ -393,6 +393,6 @@ class CGMiner(BaseMiner):
if api_stats:
try:
return int(api_stats["STATS"][0]["Elapsed"])
return int(api_stats["STATS"][1]["Elapsed"])
except LookupError:
pass

View File

@@ -442,6 +442,6 @@ class LUXMiner(BaseMiner):
if api_stats:
try:
return int(api_stats["STATS"][0]["Elapsed"])
return int(api_stats["STATS"][1]["Elapsed"])
except LookupError:
pass