diff --git a/bindings/java/src/jni/generate.pl b/bindings/java/src/jni/generate.pl index 0755faa8..7dada57e 100644 --- a/bindings/java/src/jni/generate.pl +++ b/bindings/java/src/jni/generate.pl @@ -200,11 +200,6 @@ my %classes = ( desc => 'Time since machine started in seconds', plat => '*' }, - { - name => 'idletime', type => 'Double', - desc => 'Time machine spent idle since start', - plat => 'L' - }, ], ProcMem => [ { diff --git a/include/sigar.h b/include/sigar.h index 74d943b3..a93d9a61 100644 --- a/include/sigar.h +++ b/include/sigar.h @@ -135,7 +135,6 @@ sigar_cpu_info_list_destroy(sigar_t *sigar, typedef struct { double uptime; - double idletime; } sigar_uptime_t; SIGAR_DECLARE(int) sigar_uptime_get(sigar_t *sigar, diff --git a/src/os/aix/aix_sigar.c b/src/os/aix/aix_sigar.c index c0d8b90e..bfdc55c2 100644 --- a/src/os/aix/aix_sigar.c +++ b/src/os/aix/aix_sigar.c @@ -803,7 +803,6 @@ int sigar_uptime_get(sigar_t *sigar, } uptime->uptime = time(NULL) - sigar->boot_time; - uptime->idletime = -1; return SIGAR_OK; } diff --git a/src/os/hpux/hpux_sigar.c b/src/os/hpux/hpux_sigar.c index 02bed416..ab155776 100644 --- a/src/os/hpux/hpux_sigar.c +++ b/src/os/hpux/hpux_sigar.c @@ -152,7 +152,6 @@ int sigar_uptime_get(sigar_t *sigar, sigar_uptime_t *uptime) { uptime->uptime = time(NULL) - sigar->pstatic.boot_time; - uptime->idletime = 0; /*XXX*/; return SIGAR_OK; } diff --git a/src/os/linux/linux_sigar.c b/src/os/linux/linux_sigar.c index b2c4b4b4..ff9957a2 100644 --- a/src/os/linux/linux_sigar.c +++ b/src/os/linux/linux_sigar.c @@ -346,7 +346,6 @@ int sigar_uptime_get(sigar_t *sigar, } uptime->uptime = strtod(buffer, &ptr); - uptime->idletime = strtod(ptr, &ptr); return SIGAR_OK; } diff --git a/src/os/solaris/solaris_sigar.c b/src/os/solaris/solaris_sigar.c index 4830079f..bdfe92d0 100644 --- a/src/os/solaris/solaris_sigar.c +++ b/src/os/solaris/solaris_sigar.c @@ -358,8 +358,6 @@ int sigar_cpu_list_get(sigar_t *sigar, sigar_cpu_list_t *cpulist) int sigar_uptime_get(sigar_t *sigar, sigar_uptime_t *uptime) { - uptime->idletime = 0; /*XXX*/ - if (sigar->boot_time) { uptime->uptime = time(NULL) - sigar->boot_time; } diff --git a/src/os/stub/stub_sigar.c b/src/os/stub/stub_sigar.c index e634f641..fecc42fa 100644 --- a/src/os/stub/stub_sigar.c +++ b/src/os/stub/stub_sigar.c @@ -63,7 +63,6 @@ int sigar_uptime_get(sigar_t *sigar, sigar_uptime_t *uptime) { uptime->uptime = -1; - uptime->idletime = -1; return SIGAR_OK; } diff --git a/src/os/win32/win32_sigar.c b/src/os/win32/win32_sigar.c index a299c4f8..5179c95d 100644 --- a/src/os/win32/win32_sigar.c +++ b/src/os/win32/win32_sigar.c @@ -407,7 +407,6 @@ SIGAR_DECLARE(int) sigar_cpu_list_get(sigar_t *sigar, sigar_cpu_list_t *cpulist) SIGAR_DECLARE(int) sigar_uptime_get(sigar_t *sigar, sigar_uptime_t *uptime) { - uptime->idletime = 0; uptime->uptime = GetTickCount() / 1000; return SIGAR_OK; }