Merge pull request #878 from SkynetLabs/file-count-checker-reporting-zero

fix portal size check reporting zero files
This commit is contained in:
Christopher Schinnerl 2021-06-15 12:51:39 +02:00 committed by GitHub
commit 7bf224f03e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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)