RAM percentage recording. removed unnecessary sensors

This commit is contained in:
saqriphnix 2024-07-27 19:16:40 +03:00
parent 7455a7b7d6
commit 4dbd81b352
2 changed files with 6 additions and 3 deletions

View file

@ -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__":