add cpu_info.cores_per_socket
This commit is contained in:
1 parent
e4c00a7b92
commit
51b607866f
9 files changed
+17
-4
No files matched your search
@@ -1987,8 +1987,9 @@ int sigar_cpu_info_list_get(sigar_t *sigar,
|
||||
|
||||
info = &cpu_infos->data[cpu_infos->number++];
|
||||
|
||||
info->total_sockets = ncpu;
|
||||
info->total_cores = ncpu;
|
||||
info->cores_per_socket = 1; /*XXX*/
|
||||
info->total_sockets = ncpu; /*XXX*/
|
||||
|
||||
info->cache_size = SIGAR_CPU_CACHE_SIZE;
|
||||
|
||||
|
||||
Reference in new issue
Block a user