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
@@ -2005,7 +2005,7 @@ static int sigar_cpu_info_get(sigar_t *sigar, sigar_cpu_info_t *info)
RegCloseKey(key);
RegCloseKey(cpu);
info->total_sockets = sigar->ncpu / sigar->lcpu;
info->total_sockets = sigar_cpu_socket_count(sigar);
info->total_cores = sigar->ncpu;
return SIGAR_OK;