* pprint.c: (pprint_get_swap), (main): Updated.
This commit is contained in:
Benoît Dejean
2004-09-21 09:41:34 +00:00
parent 5b15a2d1a5
commit 4882405885
2 changed files with 25 additions and 1 deletions

View File

@@ -1,3 +1,7 @@
2004-09-21 Benoît Dejean <tazforever@dlfp.org>
* pprint.c: (pprint_get_swap), (main): Updated.
2004-09-21 Benoît Dejean <tazforever@dlfp.org>
* procargs.c: (show_args), (main): Updated.

View File

@@ -180,6 +180,24 @@ static void pprint_get_netload(const char *iface)
static void pprint_get_swap()
{
glibtop_swap buf;
glibtop_get_swap(&buf);
HEADER_PPRINT(glibtop_get_swap);
PPRINT(flags, "%#llx");
PPRINT(total, "%llu");
PPRINT(used, "%llu");
PPRINT(free, "%llu");
PPRINT(pagein, "%llu");
PPRINT(pageout, "%llu");
FOOTER_PPRINT();
}
static void pprint_get_uptime()
{
glibtop_uptime buf;
@@ -211,10 +229,12 @@ int main()
pprint_get_msg_limits();
pprint_get_netload("lo");
/* pprint_get_netload("lo"); */
pprint_get_swap();
/* pprint_get_sysinfo(); */
pprint_get_uptime();