summaryrefslogtreecommitdiff
path: root/src/daemon/main.c
diff options
context:
space:
mode:
authorMartin Baulig <martin@home-of-linux.org>1998-07-22 22:56:09 +0000
committerMartin Baulig <martin@src.gnome.org>1998-07-22 22:56:09 +0000
commit954a78f2007b2de71e8fba1078e11cd6c1456afc (patch)
tree66b759f492b68585d01876d7b678f8deb8f5c87a /src/daemon/main.c
parenta90bffbbf66ff569aee93f918c943aad87a37464 (diff)
downloadlibgtop-954a78f2007b2de71e8fba1078e11cd6c1456afc.tar.gz
New file.
1998-07-22 Martin Baulig <martin@home-of-linux.org> * include/glibtop/fsusage.h: New file. * features.def: Added new feature `fsusage'. * sysdeps/common/fsusage.c (glibtop_get_fsusage_s): New function. (get_fs_usage): Declared as `static'. * sysdeps/names/fsusage.c: New file.
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r--src/daemon/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 20e3e889..e7bb4b8f 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -166,6 +166,12 @@ handle_parent_connection (int s)
resp->u.data.mountlist.total, mount_list);
glibtop_free_r (server, mount_list);
break;
+ case GLIBTOP_CMND_FSUSAGE:
+ glibtop_get_fsusage_l
+ (server, &resp->u.data.fsusage, parameter);
+ do_output (s, resp, _offset_data (fsusage),
+ 0, NULL);
+ break;
default:
glibtop_warn ("Parent received unknown command %u",
cmnd->command);