Using correct `(1 << GLIBTOP_SYSDPES_*)'. (<glibtop_suid.h>): Include.
1998-08-25 Martin Baulig <martin@home-of-linux.org> * *.c (glibtop_init_p): Using correct `(1 << GLIBTOP_SYSDPES_*)'. (<glibtop_suid.h>): Include. * glibtop_suid.h: New file. * ChangeLog: New file.
This commit is contained in:
committed by
Martin Baulig
parent
4789169c80
commit
8e540b8fc0
@@ -23,6 +23,8 @@
|
||||
#include <glibtop/cpu.h>
|
||||
#include <glibtop/uptime.h>
|
||||
|
||||
#include <glibtop_suid.h>
|
||||
|
||||
static const unsigned long _glibtop_sysdeps_uptime =
|
||||
(1 << GLIBTOP_UPTIME_UPTIME) + (1 << GLIBTOP_UPTIME_IDLETIME);
|
||||
|
||||
@@ -33,7 +35,7 @@ glibtop_get_uptime_p (glibtop *server, glibtop_uptime *buf)
|
||||
{
|
||||
glibtop_cpu cpu;
|
||||
|
||||
glibtop_init_p (&server, 0, 0);
|
||||
glibtop_init_p (server, (1 << GLIBTOP_SYSDEPS_UPTIME), 0);
|
||||
|
||||
/* Get currect cpu usage. */
|
||||
|
||||
|
Reference in New Issue
Block a user