From 2d032dbf173819da001f3b245b563e644bb9a3fa Mon Sep 17 00:00:00 2001 From: Ivaylo Novakov Date: Mon, 7 Sep 2020 17:59:39 +0200 Subject: [PATCH] Docstrings. --- setup-scripts/health-checker.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup-scripts/health-checker.py b/setup-scripts/health-checker.py index d2e1d2fa..2dd74c20 100755 --- a/setup-scripts/health-checker.py +++ b/setup-scripts/health-checker.py @@ -80,8 +80,9 @@ async def check_load_average(): # check_disk checks the amount of free space on the /home partition and issues -# a warning message if it's under 10GB. +# a warning message if it's under FREE_DISK_SPACE_THRESHOLD GB. async def check_disk(): + # We check free disk space in 1024 byte units, so it's easy to convert. df = os.popen("df --block-size=1024").read().strip() volumes = {} for line in df.split("\n")[1:]: