From 94a4da983f1d9238e71f9023d754b96ec2dbb4f3 Mon Sep 17 00:00:00 2001 From: BryantHe Date: Thu, 10 Aug 2023 13:02:47 +0800 Subject: [PATCH] update doc --- app/api/v1/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/api/v1/api.py b/app/api/v1/api.py index 38da3eb..09f186d 100644 --- a/app/api/v1/api.py +++ b/app/api/v1/api.py @@ -70,7 +70,7 @@ def hello():
""" + f'CPU 核数:{psutil.cpu_count()},目前 CPU 占用率: {psutil.cpu_percent()}' + """
- """ + f'总内存 {psutil.virtual_memory().total / 1024 / 1024} MB,使用中内存:{round(psutil.virtual_memory().used / 1024 / 1024, 2)} MB' + """ + """ + f'总内存 {round(psutil.virtual_memory().total / 1024 / 1024, 2)} MB,使用中内存:{round(psutil.virtual_memory().used / 1024 / 1024, 2)} MB' + """
""" + f'磁盘总空间 {round(psutil.disk_usage("/").total / 1024 / 1024 / 1024, 2)} G,磁盘使用情况:{round(psutil.disk_usage("/").used / 1024 / 1024 / 1024, 2)} G' + """