handle the case where VM guest may have 1 virtual ncpu on multicore hosts

This commit is contained in:
Doug MacEachern committed 2008-04-11 03:28:33 +00:00
1 parent dffb588d0b
commit a3364ec38d
4 files changed
+12 -6

No files matched your search

+1 -1
View File
@@ -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;