handle the case where VM guest may have 1 virtual ncpu on multicore hosts
This commit is contained in:
1 parent
dffb588d0b
commit
a3364ec38d
4 files changed
+12
-6
No files matched your search
@@ -2133,7 +2133,7 @@ int sigar_cpu_info_list_get(sigar_t *sigar,
|
||||
info->mhz = mhz;
|
||||
info->cache_size = cache_size;
|
||||
info->total_cores = sigar->ncpu;
|
||||
info->total_sockets = sigar->ncpu / lcpu;
|
||||
info->total_sockets = sigar_cpu_socket_count(sigar);
|
||||
}
|
||||
|
||||
return SIGAR_OK;
|
||||
|
||||
Reference in new issue
Block a user