diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2004-09-25 08:46:44 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2004-09-25 08:46:44 +0000 |
commit | d809faba3e6cd17bb19025bb32d9a1713a0cc692 (patch) | |
tree | b38648cedfe9cbf2ee9fcc105537c56cc8edd1c4 /examples | |
parent | d0833edb6656d193fe834d1f520ce25a80d337ff (diff) | |
download | libgtop-d809faba3e6cd17bb19025bb32d9a1713a0cc692.tar.gz |
Added missing call to libgtop_init();
* df.c: (main):
* pprint.c: (main):
* procargs.c: (main): Added missing call to libgtop_init();
Diffstat (limited to 'examples')
-rw-r--r-- | examples/ChangeLog | 6 | ||||
-rw-r--r-- | examples/df.c | 1 | ||||
-rw-r--r-- | examples/pprint.c | 2 | ||||
-rw-r--r-- | examples/procargs.c | 3 |
4 files changed, 12 insertions, 0 deletions
diff --git a/examples/ChangeLog b/examples/ChangeLog index 6bbaeb2f..2d421124 100644 --- a/examples/ChangeLog +++ b/examples/ChangeLog @@ -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: diff --git a/examples/df.c b/examples/df.c index a590ace2..26da6c5f 100644 --- a/examples/df.c +++ b/examples/df.c @@ -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%"); diff --git a/examples/pprint.c b/examples/pprint.c index de1d9d1c..de8d2994 100644 --- a/examples/pprint.c +++ b/examples/pprint.c @@ -216,6 +216,8 @@ static void pprint_get_uptime() int main() { + glibtop_init(); + pprint_get_cpu(); pprint_get_fsusage("/"); diff --git a/examples/procargs.c b/examples/procargs.c index 102b963e..29155f0d 100644 --- a/examples/procargs.c +++ b/examples/procargs.c @@ -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); |