Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f2832d632 | ||
|
|
59e5be280f |
@@ -403,6 +403,8 @@ class MinerData:
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
def percent_ideal(self): # noqa - Skip PyCharm inspection
|
def percent_ideal(self): # noqa - Skip PyCharm inspection
|
||||||
|
if self.total_chips == 0 or self.ideal_chips == 0:
|
||||||
|
return 0
|
||||||
return round((self.total_chips / self.ideal_chips) * 100)
|
return round((self.total_chips / self.ideal_chips) * 100)
|
||||||
|
|
||||||
@percent_ideal.setter
|
@percent_ideal.setter
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "pyasic"
|
name = "pyasic"
|
||||||
version = "0.29.5"
|
version = "0.29.6"
|
||||||
description = "A set of modules for interfacing with many common types of ASIC bitcoin miners, using both their API and SSH."
|
description = "A set of modules for interfacing with many common types of ASIC bitcoin miners, using both their API and SSH."
|
||||||
authors = ["UpstreamData <brett@upstreamdata.ca>"]
|
authors = ["UpstreamData <brett@upstreamdata.ca>"]
|
||||||
repository = "https://github.com/UpstreamData/pyasic"
|
repository = "https://github.com/UpstreamData/pyasic"
|
||||||
|
|||||||
Reference in New Issue
Block a user