cpu_info cores+sockets
This commit is contained in:
1 parent
56b8e9e6a3
commit
0983884395
1 file changed
+2
@@ -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;
|
||||||
|
|||||||
Reference in new issue
Block a user