diff --git a/prog/cleaner.py b/prog/cleaner.py index 4e500caf281990c2a5c9bbfbd6b2d64cd1f6cf88..28ead5f4b10bfca543e1a4de49db6da07de234c3 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)