Whitespace cleanup.
* loadavg.c: (glibtop_get_loadavg_s): Whitespace cleanup.
* ppp.c: (get_ISDN_stats), (is_ISDN_on): Replace g_malloc by an
array.
* glibtop_server.c: (get_pageshift):
* glibtop_server.h:
* procmem.c: (glibtop_init_proc_mem_s), (glibtop_get_proc_mem_s):
* procsegment.c: (glibtop_init_proc_segment_s),
(glibtop_get_proc_segment_s): Moved the pageshift calculation to
glibtop_server.[ch]
* procstate.c: (glibtop_get_proc_state_s):
* procuid.c: (glibtop_get_proc_uid_s):
* sysinfo.c: (init_sysinfo): Minor cleanups.
This commit is contained in:
@@ -40,7 +40,7 @@ init_sysinfo (glibtop *server)
|
||||
ssize_t len;
|
||||
char buffer [BUFSIZ];
|
||||
|
||||
if(sysinfo.flags) return;
|
||||
if(G_LIKELY(sysinfo.flags)) return;
|
||||
|
||||
glibtop_init_s (&server, GLIBTOP_SYSDEPS_CPU, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user