Spaces:
Sleeping
Sleeping
UPDATE: exportToDashboard
Browse files
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"])
|