mv HAS_NPTL define
This commit is contained in:
parent
ed23cc08e3
commit
ec98ffbc5e
|
@ -45,6 +45,9 @@
|
||||||
#define PROC_PARTITIONS PROC_FS_ROOT "partitions"
|
#define PROC_PARTITIONS PROC_FS_ROOT "partitions"
|
||||||
#define PROC_DISKSTATS PROC_FS_ROOT "diskstats"
|
#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:
|
* /proc/self/stat fields:
|
||||||
* 1 - pid
|
* 1 - pid
|
||||||
|
@ -210,9 +213,6 @@ char *sigar_os_error_string(sigar_t *sigar, int err)
|
||||||
return NULL;
|
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)
|
static int sigar_cpu_total_count(sigar_t *sigar)
|
||||||
{
|
{
|
||||||
sigar->ncpu = (int)sysconf(_SC_NPROCESSORS_CONF);
|
sigar->ncpu = (int)sysconf(_SC_NPROCESSORS_CONF);
|
||||||
|
|
Loading…
Reference in New Issue