Skip to content
Snippets Groups Projects
Commit c5bf0f87 authored by Jiří Kalvoda's avatar Jiří Kalvoda
Browse files

Fix typo

parent 87dd325e
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment