feature: add L7 support.

This commit is contained in:
Upstream Data
2023-03-01 20:32:03 -07:00
parent 140a457445
commit b70010272f
12 changed files with 453 additions and 4 deletions

View File

@@ -429,7 +429,7 @@ class MinerData:
@property
def efficiency(self): # noqa - Skip PyCharm inspection
if self.hashrate == 0:
if self.hashrate == 0 or self.wattage == -1:
return 0
return round(self.wattage / self.hashrate)