Docstrings.

This commit is contained in:
Ivaylo Novakov 2020-09-07 17:59:39 +02:00
parent 0838e4f5e5
commit 2d032dbf17
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 2 additions and 1 deletions

View File

@ -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:]: