From 552f0ede26eef966efa5e3939121fb1157efad9e Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 9 Apr 2008 07:18:38 +0000 Subject: [PATCH] fix cpu_info cores+sockets --- src/os/win32/cpu.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);