From c5bf0f8784d0b645e059cf702aec9c1078c13a4a Mon Sep 17 00:00:00 2001
From: Jiri Kalvoda <jirikalvoda@kam.mff.cuni.cz>
Date: Fri, 19 Jul 2024 13:03:21 +0200
Subject: [PATCH] Fix typo

---
 prog/cleaner.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/prog/cleaner.py b/prog/cleaner.py
index 4e500ca..28ead5f 100644
--- a/prog/cleaner.py
+++ b/prog/cleaner.py
@@ -4,14 +4,14 @@ import asyncio
 
 local = communication.DownloadServer()
 
-def disk_useage_pcent():
+def disk_usage_pcent():
     p =  subprocess.run(["df", ".", "--output=pcent", "--sync"], stdout=subprocess.PIPE, encoding="utf-8", check=True)
     return int(p.stdout.split("\n")[1].split("%")[0])
 
 
 async def main():
     while True:
-        usage = disk_useage_pcent()
+        usage = disk_usage_pcent()
         if usage <= 94: break
         print(f"Disk usage too high ({usage}%)")
         first_realtime = await local.list_next_realtime_data(communication.dt_minf)
-- 
GitLab