cpu_info cores+sockets
This commit is contained in:
parent
56b8e9e6a3
commit
0983884395
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue