diff options
author | James Dominic P. Guana <guana.histark@gmail.com> | 2020-05-26 18:53:49 +0800 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2020-11-04 13:38:03 +0000 |
commit | 7396970afe2290488fd072612a650353dd13a16d (patch) | |
tree | 4600f2a3144f25a578138164f85ef91c70aecfc3 /src/daemon/slave.c | |
parent | 9cbb3b91f11ad0c4944a1428d609201c054cffab (diff) | |
download | libgtop-7396970afe2290488fd072612a650353dd13a16d.tar.gz |
Code clean up and add example
Diffstat (limited to 'src/daemon/slave.c')
-rw-r--r-- | src/daemon/slave.c | 6 |
1 files changed, 6 insertions, 0 deletions
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); |