From 6ec574e193c29bec077309d5d77bad0cb97c4478 Mon Sep 17 00:00:00 2001 From: Oleg Kalachev Date: Thu, 17 Feb 2022 15:14:19 +0300 Subject: [PATCH] selfcheck.py: change low space threshold from 100 MB to 1 GB --- clover/src/selfcheck.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clover/src/selfcheck.py b/clover/src/selfcheck.py index b2b5e7bb..30febd6f 100755 --- a/clover/src/selfcheck.py +++ b/clover/src/selfcheck.py @@ -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))