mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 04:41:10 +00:00
RAM percentage recording. removed unnecessary sensors
This commit is contained in:
parent
7455a7b7d6
commit
4dbd81b352
2 changed files with 6 additions and 3 deletions
|
|
@ -18,7 +18,7 @@ def pretty_print():
|
|||
s = Sensors.get_cpu()
|
||||
print(f"Used CPU: {s.current_load}%")
|
||||
s = Sensors.get_ram()
|
||||
print(f"Available RAM: {(s.current_avail / 1024**3):.2f} GiB")
|
||||
print(f"Available RAM: {(s.current_avail / 1024**3):.2f} ({s.current_avail_percentage}%) GiB")
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue