Added missing call to libgtop_init();

* df.c: (main):
	* pprint.c: (main):
	* procargs.c: (main): Added missing call to libgtop_init();
This commit is contained in:
Benoît Dejean
2004-09-25 08:46:44 +00:00
parent d0833edb66
commit d809faba3e
4 changed files with 12 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
i2004-09-25 Benoît Dejean <tazforever@dlfp.org>
* df.c: (main):
* pprint.c: (main):
* procargs.c: (main): Added missing call to libgtop_init();
2004-09-24 Benoît Dejean <tazforever@dlfp.org>
* .cvsignore:

View File

@@ -28,6 +28,7 @@ int main()
glibtop_mountentry *entries;
size_t i;
glibtop_init();
printf("%-20s %-10s %-10s %-10s %-10s\n",
"Filesystem", "Size", "Used", "Avail", "Use%");

View File

@@ -216,6 +216,8 @@ static void pprint_get_uptime()
int main()
{
glibtop_init();
pprint_get_cpu();
pprint_get_fsusage("/");

View File

@@ -1,3 +1,4 @@
#include <glibtop.h>
#include <glibtop/procargs.h>
#include <stdlib.h>
@@ -27,6 +28,8 @@ static void show_args(pid_t pid, unsigned max_len)
int main(int argc, char **argv)
{
glibtop_init();
show_args(getpid(), 0);
show_args(getpid(), 15);