ui updates
This commit is contained in:
@@ -21,7 +21,7 @@ async def get_system_metrics(args: Dict[str, Any]) -> Dict[str, Any]:
|
||||
"""
|
||||
try:
|
||||
# Get CPU usage (averaged over 0.1 seconds for responsiveness)
|
||||
cpu_usage = await asyncio.to_thread(psutil.cpu_percent, interval=0.1)
|
||||
cpu_usage = await asyncio.to_thread(psutil.cpu_percent, interval=1)
|
||||
|
||||
# Get RAM usage
|
||||
memory = psutil.virtual_memory()
|
||||
|
||||
Reference in New Issue
Block a user