cpu_info cores+sockets

This commit is contained in:
Doug MacEachern 2008-04-09 05:14:10 +00:00
parent 56b8e9e6a3
commit 0983884395
1 changed files with 2 additions and 0 deletions

View File

@ -2123,6 +2123,8 @@ int sigar_cpu_info_list_get(sigar_t *sigar,
info->mhz = mhz; info->mhz = mhz;
info->cache_size = cache_size; info->cache_size = cache_size;
info->total_cores = sigar->ncpu;
info->total_sockets = sigar->ncpu;
} }
return SIGAR_OK; return SIGAR_OK;