mirror of
https://github.com/MacRimi/ProxMenux.git
synced 2025-11-18 19:46:18 +00:00
Update flask_server.py
This commit is contained in:
@@ -388,8 +388,7 @@ def serve_images(filename):
|
|||||||
def get_system_info():
|
def get_system_info():
|
||||||
"""Get basic system information"""
|
"""Get basic system information"""
|
||||||
try:
|
try:
|
||||||
# CPU usage
|
cpu_percent = psutil.cpu_percent(interval=0.5)
|
||||||
cpu_percent = psutil.cpu_percent(interval=1)
|
|
||||||
|
|
||||||
# Memory usage
|
# Memory usage
|
||||||
memory = psutil.virtual_memory()
|
memory = psutil.virtual_memory()
|
||||||
|
|||||||
Reference in New Issue
Block a user