From 0983884395a594e405b672d299d7a0ce2c2a1f82 Mon Sep 17 00:00:00 2001 From: Doug MacEachern Date: Wed, 9 Apr 2008 05:14:10 +0000 Subject: [PATCH] cpu_info cores+sockets --- src/os/darwin/darwin_sigar.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/os/darwin/darwin_sigar.c b/src/os/darwin/darwin_sigar.c index 964926f1..884c8831 100644 --- a/src/os/darwin/darwin_sigar.c +++ b/src/os/darwin/darwin_sigar.c @@ -2123,6 +2123,8 @@ int sigar_cpu_info_list_get(sigar_t *sigar, info->mhz = mhz; info->cache_size = cache_size; + info->total_cores = sigar->ncpu; + info->total_sockets = sigar->ncpu; } return SIGAR_OK;