summaryrefslogtreecommitdiff
path: root/examples/first.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-08-01 22:03:11 +0000
committerMartin Baulig <martin@src.gnome.org>1998-08-01 22:03:11 +0000
commit2e454140f124d41aa08081c09ea0efcb0e6293e5 (patch)
tree4e5967c1509ff6bab5485f897cec977c7cb5d4e0 /examples/first.c
parentfc506344eaef84431d8c64288e93e5e5ca90cdd3 (diff)
downloadlibgtop-2e454140f124d41aa08081c09ea0efcb0e6293e5.tar.gz
Added `pagein' and `pageout'.
1998-08-01 Martin Baulig <martin@home-of-linux.org> * include/glibtop/swap.h (glibtop_swap): Added `pagein' and `pageout'. * kernel/table20/table.h: Removed. * kernel/table21/table.h: Removed. * kernel/table.h: Added. Things are now binary compatible between both kernel versions.
Diffstat (limited to 'examples/first.c')
-rw-r--r--examples/first.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/first.c b/examples/first.c
index e3703714..979003db 100644
--- a/examples/first.c
+++ b/examples/first.c
@@ -86,8 +86,9 @@ main (int argc, char *argv [])
for (c = 0; c < PROFILE_COUNT; c++)
glibtop_get_swap (&data.swap);
- printf ("Swap (0x%08Lx): %Lu, %Lu, %Lu\n", data.swap.flags,
- data.swap.total, data.swap.used, data.swap.free);
+ printf ("Swap (0x%08Lx): %Lu, %Lu, %Lu, %Lu, %Lu\n",
+ data.swap.flags, data.swap.total, data.swap.used,
+ data.swap.free, data.swap.pagein, data.swap.pageout);
for (c = 0; c < PROFILE_COUNT; c++)
glibtop_get_uptime (&data.uptime);