bug: fix improper stats key when getting uptime.
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user