Rauhan commited on
Commit
113e70a
·
1 Parent(s): 99ae1f6

UPDATE: exportToDashboard

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -37,7 +37,9 @@ app.add_middleware(
37
  async def stats():
38
  memory = psutil.virtual_memory()
39
  cpu_usage = psutil.cpu_percent(interval=1, percpu=True)
 
40
  print(f"RAM Usage Percentage: {memory.percent}%")
 
41
  print(f"Total CPU Usage Per Core: {cpu_usage}")
42
 
43
  app.include_router(authentication.router, prefix = "/auth", tags = ["Authentication"])
 
37
  async def stats():
38
  memory = psutil.virtual_memory()
39
  cpu_usage = psutil.cpu_percent(interval=1, percpu=True)
40
+ totalUsage = psutil.cpu_percent(interval=1)
41
  print(f"RAM Usage Percentage: {memory.percent}%")
42
+ print(f"Total CPU Utilization: {totalUsage}%")
43
  print(f"Total CPU Usage Per Core: {cpu_usage}")
44
 
45
  app.include_router(authentication.router, prefix = "/auth", tags = ["Authentication"])