From 7396970afe2290488fd072612a650353dd13a16d Mon Sep 17 00:00:00 2001 From: "James Dominic P. Guana" Date: Tue, 26 May 2020 18:53:49 +0800 Subject: Code clean up and add example --- src/daemon/slave.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/daemon/slave.c') diff --git a/src/daemon/slave.c b/src/daemon/slave.c index e15f1efc..6e80b2b8 100644 --- a/src/daemon/slave.c +++ b/src/daemon/slave.c @@ -135,6 +135,12 @@ handle_slave_command (glibtop_command *cmnd, glibtop_response *resp, resp->offset = _offset_data (cpu); break; #endif +#if GLIBTOP_SUID_DISK + case GLIBTOP_CMND_DISK: + glibtop_get_disk_p (server, &resp->u.data.disk); + resp->offset = _offset_data (disk); + break; +#endif #if GLIBTOP_SUID_MEM case GLIBTOP_CMND_MEM: glibtop_get_mem_p (server, &resp->u.data.mem); -- cgit v1.2.1