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:
@@ -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>
|
2004-09-24 Benoît Dejean <tazforever@dlfp.org>
|
||||||
|
|
||||||
* .cvsignore:
|
* .cvsignore:
|
||||||
|
@@ -28,6 +28,7 @@ int main()
|
|||||||
glibtop_mountentry *entries;
|
glibtop_mountentry *entries;
|
||||||
size_t i;
|
size_t i;
|
||||||
|
|
||||||
|
glibtop_init();
|
||||||
|
|
||||||
printf("%-20s %-10s %-10s %-10s %-10s\n",
|
printf("%-20s %-10s %-10s %-10s %-10s\n",
|
||||||
"Filesystem", "Size", "Used", "Avail", "Use%");
|
"Filesystem", "Size", "Used", "Avail", "Use%");
|
||||||
|
@@ -216,6 +216,8 @@ static void pprint_get_uptime()
|
|||||||
|
|
||||||
int main()
|
int main()
|
||||||
{
|
{
|
||||||
|
glibtop_init();
|
||||||
|
|
||||||
pprint_get_cpu();
|
pprint_get_cpu();
|
||||||
|
|
||||||
pprint_get_fsusage("/");
|
pprint_get_fsusage("/");
|
||||||
|
@@ -1,3 +1,4 @@
|
|||||||
|
#include <glibtop.h>
|
||||||
#include <glibtop/procargs.h>
|
#include <glibtop/procargs.h>
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
@@ -27,6 +28,8 @@ static void show_args(pid_t pid, unsigned max_len)
|
|||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
|
glibtop_init();
|
||||||
|
|
||||||
show_args(getpid(), 0);
|
show_args(getpid(), 0);
|
||||||
show_args(getpid(), 15);
|
show_args(getpid(), 15);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user