removing uptime.idletime (only linux had this)

This commit is contained in:
Doug MacEachern 2004-07-21 21:56:55 +00:00
parent c0ce6a2c7e
commit dc4168178d
8 changed files with 0 additions and 13 deletions

View File

@ -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 => [
{

View File

@ -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,

View File

@ -803,7 +803,6 @@ int sigar_uptime_get(sigar_t *sigar,
}
uptime->uptime = time(NULL) - sigar->boot_time;
uptime->idletime = -1;
return SIGAR_OK;
}

View File

@ -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;
}

View File

@ -346,7 +346,6 @@ int sigar_uptime_get(sigar_t *sigar,
}
uptime->uptime = strtod(buffer, &ptr);
uptime->idletime = strtod(ptr, &ptr);
return SIGAR_OK;
}

View File

@ -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;
}

View File

@ -63,7 +63,6 @@ int sigar_uptime_get(sigar_t *sigar,
sigar_uptime_t *uptime)
{
uptime->uptime = -1;
uptime->idletime = -1;
return SIGAR_OK;
}

View File

@ -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;
}