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' + """