fix portal size check reporting zero files
This commit is contained in:
parent
614e1a72db
commit
49bb6dd2e2
|
@ -350,9 +350,9 @@ async def check_portal_size():
|
|||
# Initialize variables
|
||||
num_files = 0
|
||||
max_files = 1500000 # 1.5 mln
|
||||
files_text = "Files"
|
||||
files_text = "Files:"
|
||||
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():
|
||||
if el.isdigit():
|
||||
num_files = int(el)
|
||||
|
|
Reference in New Issue