diff --git a/src/os/win32/cpu.c b/src/os/win32/cpu.c index e11600f3..597848ed 100644 --- a/src/os/win32/cpu.c +++ b/src/os/win32/cpu.c @@ -350,8 +350,8 @@ int sigar_cpu_info_get(sigar_t *sigar, sigar_cpu_info_t *info) info->mhz = -1; } - info->total_cores = sigar->ncpu; - info->total_sockets = sigar->ncpu / sigar->lcpu; + info->total_cores = sigar->ncpu * sigar->lcpu; + info->total_sockets = sigar->ncpu; info->cache_size = -1; //XXX RegCloseKey(key);