bug: fix improper stats key when getting uptime.
This commit is contained in:
@@ -257,7 +257,7 @@ class AntminerModern(BMMiner):
|
|||||||
|
|
||||||
if api_stats:
|
if api_stats:
|
||||||
try:
|
try:
|
||||||
return int(api_stats["STATS"][0]["Elapsed"])
|
return int(api_stats["STATS"][1]["Elapsed"])
|
||||||
except LookupError:
|
except LookupError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
@@ -502,6 +502,6 @@ class AntminerOld(CGMiner):
|
|||||||
|
|
||||||
if api_stats:
|
if api_stats:
|
||||||
try:
|
try:
|
||||||
return int(api_stats["STATS"][0]["Elapsed"])
|
return int(api_stats["STATS"][1]["Elapsed"])
|
||||||
except LookupError:
|
except LookupError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -370,6 +370,6 @@ class BMMiner(BaseMiner):
|
|||||||
|
|
||||||
if api_stats:
|
if api_stats:
|
||||||
try:
|
try:
|
||||||
return int(api_stats["STATS"][0]["Elapsed"])
|
return int(api_stats["STATS"][1]["Elapsed"])
|
||||||
except LookupError:
|
except LookupError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -393,6 +393,6 @@ class CGMiner(BaseMiner):
|
|||||||
|
|
||||||
if api_stats:
|
if api_stats:
|
||||||
try:
|
try:
|
||||||
return int(api_stats["STATS"][0]["Elapsed"])
|
return int(api_stats["STATS"][1]["Elapsed"])
|
||||||
except LookupError:
|
except LookupError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -442,6 +442,6 @@ class LUXMiner(BaseMiner):
|
|||||||
|
|
||||||
if api_stats:
|
if api_stats:
|
||||||
try:
|
try:
|
||||||
return int(api_stats["STATS"][0]["Elapsed"])
|
return int(api_stats["STATS"][1]["Elapsed"])
|
||||||
except LookupError:
|
except LookupError:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user