summaryrefslogtreecommitdiff
path: root/src/daemon
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@gnome.org>2020-11-06 09:52:00 -0600
committerMichael Catanzaro <mcatanzaro@gnome.org>2020-11-06 09:52:00 -0600
commitea08151ae6582a438db76b738293a0194c964b88 (patch)
tree2456ecc117edf25ce43fecf625946a40e72007f6 /src/daemon
parent2229253e11ae5c729a703f0c72e006f46746c592 (diff)
downloadlibgtop-ea08151ae6582a438db76b738293a0194c964b88.tar.gz
Revert "Code clean up and add example"
This reverts commit 7396970afe2290488fd072612a650353dd13a16d.
Diffstat (limited to 'src/daemon')
-rw-r--r--src/daemon/main.c2
-rw-r--r--src/daemon/slave.c6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 88e19a09..34cbaf50 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -98,7 +98,7 @@ handle_parent_connection (int s)
do_output (s, resp, _offset_data (cpu), 0, NULL);
break;
case GLIBTOP_CMND_DISK:
- glibtop_get_disk_l (server, &resp->u.data.disk);
+ glibtop_get_disk_l (server, &resp->u.disk.cpu);
do_output (s, resp, _offset_data (disk), 0, NULL);
break;
case GLIBTOP_CMND_MEM:
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
index 6e80b2b8..e15f1efc 100644
--- a/src/daemon/slave.c
+++ b/src/daemon/slave.c
@@ -135,12 +135,6 @@ 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);