removing uptime.idletime (only linux had this)
This commit is contained in:
parent
c0ce6a2c7e
commit
dc4168178d
|
@ -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 => [
|
||||
{
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -803,7 +803,6 @@ int sigar_uptime_get(sigar_t *sigar,
|
|||
}
|
||||
|
||||
uptime->uptime = time(NULL) - sigar->boot_time;
|
||||
uptime->idletime = -1;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -346,7 +346,6 @@ int sigar_uptime_get(sigar_t *sigar,
|
|||
}
|
||||
|
||||
uptime->uptime = strtod(buffer, &ptr);
|
||||
uptime->idletime = strtod(ptr, &ptr);
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -63,7 +63,6 @@ int sigar_uptime_get(sigar_t *sigar,
|
|||
sigar_uptime_t *uptime)
|
||||
{
|
||||
uptime->uptime = -1;
|
||||
uptime->idletime = -1;
|
||||
|
||||
return SIGAR_OK;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue