Skip to content

Commit

Permalink
Merge pull request #6 from uni-halle/systemStatusReturnStorage
Browse files Browse the repository at this point in the history
Added storage to system status
  • Loading branch information
vJan00 authored Dec 1, 2023
2 parents ae2240b + f42f9dc commit c77f43b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ def system_status():
"ram_usage": round(psutil.virtual_memory().percent, 1),
"ram_free": round(psutil.virtual_memory().available
* 100 / psutil.virtual_memory().total, 1),
"storage_total": round(psutil.disk_usage('./').total / 1000000000, 1),
"storage_usage": round(psutil.disk_usage('./').used / 1000000000, 1),
"storage_free": round(psutil.disk_usage('./').free / 1000000000, 1),
"swap_usage": round(psutil.swap_memory().percent, 1),
"swap_free": round(psutil.swap_memory().free
* 100 / psutil.swap_memory().total, 1),
Expand Down

0 comments on commit c77f43b

Please sign in to comment.