Skip to content

Commit

Permalink
Cactus fix 'Total Plots Size' parsing.
Browse files Browse the repository at this point in the history
  • Loading branch information
guydavis committed Oct 31, 2023
1 parent 48d93eb commit 1891c7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/models/chia.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, cli_stdout, blockchain):
self.plot_count = line.strip().split(':')[1].strip()
elif "Total size of plots" in line:
self.plots_size = line.strip().split(':')[1].strip()
if blockchain in ['chia', 'gigahorse']: # Example "68.388 TiB, 68.425 TiBe (effective)"
if blockchain in ['cactus', 'chia', 'gigahorse']: # Example "68.388 TiB, 68.425 TiBe (effective)"
raw,effective = self.plots_size.strip().split(',')
self.plots_size = effective.strip().removesuffix('e (effective)')
elif "status" in line:
Expand Down

0 comments on commit 1891c7b

Please sign in to comment.