selfcheck.py: change low space threshold from 100 MB to 1 GB

This commit is contained in:
Oleg Kalachev
2022-02-17 15:14:19 +03:00
parent 8381aecd50
commit 6ec574e193

View File

@@ -743,8 +743,8 @@ def check_rpi_health():
try:
import shutil
total, used, free = shutil.disk_usage('/')
if free < 100 * 1024 * 1024:
failure('disk space is less than 100 MB; consider removing logs (~/.ros/log/)')
if free < 1024 * 1024 * 1024:
failure('disk space is less than 1 GB; consider removing logs (~/.ros/log/)')
except Exception as e:
info('could not check the disk free space: %s', str(e))