mirror of
https://github.com/snowykami/server-status-client.git
synced 2024-11-25 16:45:23 +08:00
✨ 修复CPU物理核心计算错误
This commit is contained in:
parent
0360e58cc1
commit
2e4fd493c5
2
.gitignore
vendored
2
.gitignore
vendored
@ -122,6 +122,8 @@ celerybeat.pid
|
|||||||
*.sage.py
|
*.sage.py
|
||||||
|
|
||||||
pdm.lock
|
pdm.lock
|
||||||
|
start.cmd
|
||||||
|
start.sh
|
||||||
|
|
||||||
# Environments
|
# Environments
|
||||||
.env
|
.env
|
||||||
|
@ -224,7 +224,7 @@ class Client:
|
|||||||
self.hardware.mem_used = psutil.virtual_memory().used
|
self.hardware.mem_used = psutil.virtual_memory().used
|
||||||
self.hardware.swap_total = psutil.swap_memory().total
|
self.hardware.swap_total = psutil.swap_memory().total
|
||||||
self.hardware.swap_used = psutil.swap_memory().used
|
self.hardware.swap_used = psutil.swap_memory().used
|
||||||
self.hardware.cpu_cores = psutil.cpu_count()
|
self.hardware.cpu_cores = psutil.cpu_count(logical=False)
|
||||||
self.hardware.cpu_logics = psutil.cpu_count(logical=True)
|
self.hardware.cpu_logics = psutil.cpu_count(logical=True)
|
||||||
for part in psutil.disk_partitions():
|
for part in psutil.disk_partitions():
|
||||||
try:
|
try:
|
||||||
|
Loading…
Reference in New Issue
Block a user