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
@@ -2005,8 +2005,9 @@ static int sigar_cpu_info_get(sigar_t *sigar, sigar_cpu_info_t *info)
|
||||
RegCloseKey(key);
|
||||
RegCloseKey(cpu);
|
||||
|
||||
info->total_cores = sigar->ncpu;
|
||||
info->cores_per_socket = sigar->lcpu;
|
||||
info->total_sockets = sigar_cpu_socket_count(sigar);
|
||||
info->total_cores = sigar->ncpu;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user