[SIGAR-71] default to listing cpu cores
This commit is contained in:
parent
9a1f45cd7b
commit
e94969339f
|
@ -39,8 +39,8 @@ SIGAR_DECLARE(int) sigar_open(sigar_t **sigar)
|
||||||
int status = sigar_os_open(sigar);
|
int status = sigar_os_open(sigar);
|
||||||
|
|
||||||
if (status == SIGAR_OK) {
|
if (status == SIGAR_OK) {
|
||||||
/* XXX tmp hack */
|
/* use env to revert to old behavior */
|
||||||
(*sigar)->cpu_list_cores = getenv("SIGAR_CPU_CORES") ? 1 : 0;
|
(*sigar)->cpu_list_cores = getenv("SIGAR_CPU_LIST_SOCKETS") ? 0 : 1;
|
||||||
(*sigar)->pid = 0;
|
(*sigar)->pid = 0;
|
||||||
(*sigar)->ifconf_buf = NULL;
|
(*sigar)->ifconf_buf = NULL;
|
||||||
(*sigar)->ifconf_len = 0;
|
(*sigar)->ifconf_len = 0;
|
||||||
|
|
Loading…
Reference in New Issue