Now using correct features' parameter in call to
glibtop_init_s'.
This commit is contained in:
@@ -45,7 +45,7 @@ glibtop_get_cpu_s (glibtop *server, glibtop_cpu *buf)
|
|||||||
{
|
{
|
||||||
union table tbl;
|
union table tbl;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_cpu));
|
memset (buf, 0, sizeof (glibtop_cpu));
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ glibtop_get_loadavg_s (glibtop *server, glibtop_loadavg *buf)
|
|||||||
{
|
{
|
||||||
union table tbl;
|
union table tbl;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_LOADAVG, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_loadavg));
|
memset (buf, 0, sizeof (glibtop_loadavg));
|
||||||
|
|
||||||
|
@@ -46,7 +46,7 @@ glibtop_get_mem_s (glibtop *server, glibtop_mem *buf)
|
|||||||
{
|
{
|
||||||
union table tbl;
|
union table tbl;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_MEM, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_mem));
|
memset (buf, 0, sizeof (glibtop_mem));
|
||||||
|
|
||||||
|
@@ -45,7 +45,7 @@ glibtop_get_msg_limits_s (glibtop *server, glibtop_msg_limits *buf)
|
|||||||
{
|
{
|
||||||
struct msginfo msginfo;
|
struct msginfo msginfo;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_MSG_LIMITS, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_msg_limits));
|
memset (buf, 0, sizeof (glibtop_msg_limits));
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@ glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf,
|
|||||||
{
|
{
|
||||||
union table tbl;
|
union table tbl;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_KERNEL, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_proc_kernel));
|
memset (buf, 0, sizeof (glibtop_proc_kernel));
|
||||||
|
|
||||||
|
@@ -59,7 +59,7 @@ glibtop_get_proclist_s (glibtop *server, glibtop_proclist *buf)
|
|||||||
union table tbl;
|
union table tbl;
|
||||||
unsigned *pids_chain;
|
unsigned *pids_chain;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROCLIST, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_proclist));
|
memset (buf, 0, sizeof (glibtop_proclist));
|
||||||
|
|
||||||
|
@@ -46,7 +46,7 @@ glibtop_get_proc_mem_s (glibtop *server, glibtop_proc_mem *buf,
|
|||||||
{
|
{
|
||||||
union table tbl;
|
union table tbl;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_MEM, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_proc_mem));
|
memset (buf, 0, sizeof (glibtop_proc_mem));
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@ glibtop_get_proc_segment_s (glibtop *server, glibtop_proc_segment *buf,
|
|||||||
{
|
{
|
||||||
union table tbl;
|
union table tbl;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_SEGMENT, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_proc_segment));
|
memset (buf, 0, sizeof (glibtop_proc_segment));
|
||||||
|
|
||||||
|
@@ -45,7 +45,7 @@ glibtop_get_proc_signal_s (glibtop *server, glibtop_proc_signal *buf,
|
|||||||
{
|
{
|
||||||
union table tbl;
|
union table tbl;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_SIGNAL, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_proc_signal));
|
memset (buf, 0, sizeof (glibtop_proc_signal));
|
||||||
|
|
||||||
|
@@ -49,7 +49,7 @@ glibtop_get_proc_state_s (glibtop *server, glibtop_proc_state *buf,
|
|||||||
{ 'R', 'S', 'D', 'Z', 'T', 'W', '.' };
|
{ 'R', 'S', 'D', 'Z', 'T', 'W', '.' };
|
||||||
unsigned state;
|
unsigned state;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_STATE, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_proc_state));
|
memset (buf, 0, sizeof (glibtop_proc_state));
|
||||||
|
|
||||||
|
@@ -47,7 +47,7 @@ glibtop_get_proc_time_s (glibtop *server, glibtop_proc_time *buf,
|
|||||||
{
|
{
|
||||||
union table tbl;
|
union table tbl;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_TIME, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_proc_time));
|
memset (buf, 0, sizeof (glibtop_proc_time));
|
||||||
|
|
||||||
|
@@ -52,7 +52,7 @@ glibtop_get_proc_uid_s (glibtop *server, glibtop_proc_uid *buf,
|
|||||||
union table tbl;
|
union table tbl;
|
||||||
long def_priority, priority, nice;
|
long def_priority, priority, nice;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_PROC_UID, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_proc_uid));
|
memset (buf, 0, sizeof (glibtop_proc_uid));
|
||||||
|
|
||||||
|
@@ -62,7 +62,7 @@ glibtop_get_sem_limits_s (glibtop *server, glibtop_sem_limits *buf)
|
|||||||
struct seminfo seminfo;
|
struct seminfo seminfo;
|
||||||
union semun arg;
|
union semun arg;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_SEM_LIMITS, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_sem_limits));
|
memset (buf, 0, sizeof (glibtop_sem_limits));
|
||||||
|
|
||||||
|
@@ -44,7 +44,7 @@ glibtop_get_shm_limits_s (glibtop *server, glibtop_shm_limits *buf)
|
|||||||
{
|
{
|
||||||
struct shminfo shminfo;
|
struct shminfo shminfo;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_SHM_LIMITS, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_shm_limits));
|
memset (buf, 0, sizeof (glibtop_shm_limits));
|
||||||
|
|
||||||
|
@@ -45,7 +45,7 @@ glibtop_get_swap_s (glibtop *server, glibtop_swap *buf)
|
|||||||
{
|
{
|
||||||
union table tbl;
|
union table tbl;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_SWAP, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_swap));
|
memset (buf, 0, sizeof (glibtop_swap));
|
||||||
|
|
||||||
|
@@ -43,7 +43,7 @@ glibtop_get_uptime_s (glibtop *server, glibtop_uptime *buf)
|
|||||||
{
|
{
|
||||||
union table tbl;
|
union table tbl;
|
||||||
|
|
||||||
glibtop_init_s (&server, 0, 0);
|
glibtop_init_s (&server, GLIBTOP_SYSDEPS_UPTIME, 0);
|
||||||
|
|
||||||
memset (buf, 0, sizeof (glibtop_uptime));
|
memset (buf, 0, sizeof (glibtop_uptime));
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user