diff --git a/.gitignore b/.gitignore index 27ebebe..f540620 100644 --- a/.gitignore +++ b/.gitignore @@ -122,6 +122,8 @@ celerybeat.pid *.sage.py pdm.lock +start.cmd +start.sh # Environments .env diff --git a/server_status/api.py b/server_status/api.py index bc21e04..8ac7fcf 100644 --- a/server_status/api.py +++ b/server_status/api.py @@ -224,7 +224,7 @@ class Client: self.hardware.mem_used = psutil.virtual_memory().used self.hardware.swap_total = psutil.swap_memory().total 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) for part in psutil.disk_partitions(): try: