diff --git a/lib/sysdeps.c b/lib/sysdeps.c index 7f18fe2d..c7052166 100644 --- a/lib/sysdeps.c +++ b/lib/sysdeps.c @@ -38,7 +38,8 @@ GLIBTOP_SUID_PROC_TIME + GLIBTOP_SUID_PROC_SIGNAL + GLIBTOP_SUID_PROC_KERNEL + GLIBTOP_SUID_PROC_SEGMENT + -GLIBTOP_SUID_PROC_MAP; +GLIBTOP_SUID_PROC_MAP + +GLIBTOP_SUID_PPP; glibtop_init_func_t _glibtop_init_hook_s [] = { #if !GLIBTOP_SUID_CPU @@ -91,6 +92,9 @@ glibtop_init_func_t _glibtop_init_hook_s [] = { #endif #if !GLIBTOP_SUID_PROC_MAP glibtop_init_proc_map_s, +#endif +#if !GLIBTOP_SUID_PPP + glibtop_init_ppp_s, #endif NULL }; diff --git a/sysdeps/freebsd/ppp.c b/sysdeps/freebsd/ppp.c index f535e818..94f48175 100644 --- a/sysdeps/freebsd/ppp.c +++ b/sysdeps/freebsd/ppp.c @@ -123,8 +123,8 @@ glibtop_get_ppp_p (glibtop *server, glibtop_ppp *buf, unsigned short device) buf->flags = _glibtop_sysdeps_ppp; #ifdef HAVE_I4B_ACCT - buf->bytes_in = data.sc_iinb; - buf->bytes_out = data.sc_ioutb; + buf->bytes_in = data.sc_inb; + buf->bytes_out = data.sc_outb; buf->flags |= _glibtop_sysdeps_ppp_acct; #endif #endif /* HAVE_I4B */