bug: fix a bunch of spelling mistakes.
This commit is contained in:
@@ -275,7 +275,7 @@ class AntminerModern(BMMiner):
|
||||
rate_unit = "GH"
|
||||
return AlgoHashRate.SHA256(
|
||||
expected_rate, HashUnit.SHA256.from_str(rate_unit)
|
||||
).int(self.algo.unit.default)
|
||||
).into(self.algo.unit.default)
|
||||
except LookupError:
|
||||
pass
|
||||
|
||||
|
||||
@@ -251,7 +251,7 @@ class AvalonMiner(CGMiner):
|
||||
parsed_stats = self.parse_stats(unparsed_stats)
|
||||
return AlgoHashRate.SHA256(
|
||||
parsed_stats["GHSmm"], HashUnit.SHA256.GH
|
||||
).int(self.algo.unit.default)
|
||||
).into(self.algo.unit.default)
|
||||
except (IndexError, KeyError, ValueError, TypeError):
|
||||
pass
|
||||
|
||||
|
||||
@@ -224,6 +224,6 @@ class BFGMiner(StockFirmware):
|
||||
rate_unit = "GH"
|
||||
return AlgoHashRate.SHA256(
|
||||
expected_rate, HashUnit.SHA256.from_str(rate_unit)
|
||||
).int(self.algo.unit.default)
|
||||
).into(self.algo.unit.default)
|
||||
except LookupError:
|
||||
pass
|
||||
|
||||
@@ -575,7 +575,7 @@ class BTMiner(StockFirmware):
|
||||
if expected_hashrate:
|
||||
return AlgoHashRate.SHA256(
|
||||
expected_hashrate, HashUnit.SHA256.GH
|
||||
).int(self.algo.unit.default)
|
||||
).into(self.algo.unit.default)
|
||||
|
||||
except LookupError:
|
||||
pass
|
||||
|
||||
@@ -279,7 +279,7 @@ class LUXMiner(LuxOSFirmware):
|
||||
rate_unit = "GH"
|
||||
return AlgoHashRate.SHA256(
|
||||
expected_rate, HashUnit.SHA256.from_str(rate_unit)
|
||||
).int(self.algo.unit.default)
|
||||
).into(self.algo.unit.default)
|
||||
except LookupError:
|
||||
pass
|
||||
|
||||
|
||||
@@ -282,7 +282,7 @@ class MaraMiner(MaraFirmware):
|
||||
try:
|
||||
return AlgoHashRate.SHA256(
|
||||
web_brief["hashrate_ideal"], HashUnit.SHA256.GH
|
||||
).int(self.algo.unit.default)
|
||||
).into(self.algo.unit.default)
|
||||
except LookupError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user