diff options
author | James Dominic P. Guana <guana.histark@gmail.com> | 2021-04-10 18:20:21 +0800 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2021-04-23 09:48:11 +0000 |
commit | 2ec1815e6ce8da65244c18fbad56c06721f737cb (patch) | |
tree | ebceef606186b5c901c9b4a8edf8fb226c074a96 /src/daemon/slave.c | |
parent | 48595809ed33c216a05a7fb0b0ac73dcd4635624 (diff) | |
download | libgtop-2ec1815e6ce8da65244c18fbad56c06721f737cb.tar.gz |
Revert "Revert "Code clean up and add example""
This reverts commit ea08151ae6582a438db76b738293a0194c964b88.
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); |