[SIGAR-71] default to listing cpu cores

This commit is contained in:
Doug MacEachern 2008-05-24 21:32:42 +00:00
parent 9a1f45cd7b
commit e94969339f
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ SIGAR_DECLARE(int) sigar_open(sigar_t **sigar)
int status = sigar_os_open(sigar);
if (status == SIGAR_OK) {
/* XXX tmp hack */
(*sigar)->cpu_list_cores = getenv("SIGAR_CPU_CORES") ? 1 : 0;
/* use env to revert to old behavior */
(*sigar)->cpu_list_cores = getenv("SIGAR_CPU_LIST_SOCKETS") ? 0 : 1;
(*sigar)->pid = 0;
(*sigar)->ifconf_buf = NULL;
(*sigar)->ifconf_len = 0;