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