mv HAS_NPTL define

This commit is contained in:
Doug MacEachern 2008-05-09 04:25:39 +00:00
parent ed23cc08e3
commit ec98ffbc5e
1 changed files with 3 additions and 3 deletions

View File

@ -45,6 +45,9 @@
#define PROC_PARTITIONS PROC_FS_ROOT "partitions"
#define PROC_DISKSTATS PROC_FS_ROOT "diskstats"
/* Native POSIX Thread Library 2.6+ kernel */
#define SIGAR_HAS_NPTL (sigar->iostat == IOSTAT_DISKSTATS)
/*
* /proc/self/stat fields:
* 1 - pid
@ -210,9 +213,6 @@ char *sigar_os_error_string(sigar_t *sigar, int err)
return NULL;
}
/* Native POSIX Thread Library 2.6+ kernel */
#define SIGAR_HAS_NPTL (sigar->iostat == IOSTAT_DISKSTATS)
static int sigar_cpu_total_count(sigar_t *sigar)
{
sigar->ncpu = (int)sysconf(_SC_NPROCESSORS_CONF);