fix portal size check reporting zero files

This commit is contained in:
Karol Wypchlo 2021-06-15 11:41:01 +02:00
parent 614e1a72db
commit 49bb6dd2e2
1 changed files with 2 additions and 2 deletions

View File

@ -350,9 +350,9 @@ async def check_portal_size():
# Initialize variables # Initialize variables
num_files = 0 num_files = 0
max_files = 1500000 # 1.5 mln max_files = 1500000 # 1.5 mln
files_text = "Files" files_text = "Files:"
for line in siac_renter_output.split("\n"): for line in siac_renter_output.split("\n"):
if contains_string(line, files_text): if line.strip().startswith(files_text):
for el in line.split(): for el in line.split():
if el.isdigit(): if el.isdigit():
num_files = int(el) num_files = int(el)