mirror of
https://github.com/CopterExpress/clover.git
synced 2026-05-27 05:29:32 +00:00
selfcheck.py: change low space threshold from 100 MB to 1 GB
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user