summaryrefslogtreecommitdiff
path: root/src/daemon/main.c
diff options
context:
space:
mode:
authorJames Dominic P. Guana <guana.histark@gmail.com>2021-04-10 18:20:21 +0800
committerRobert Roth <robert.roth.off@gmail.com>2021-04-23 09:48:11 +0000
commit2ec1815e6ce8da65244c18fbad56c06721f737cb (patch)
treeebceef606186b5c901c9b4a8edf8fb226c074a96 /src/daemon/main.c
parent48595809ed33c216a05a7fb0b0ac73dcd4635624 (diff)
downloadlibgtop-2ec1815e6ce8da65244c18fbad56c06721f737cb.tar.gz
Revert "Revert "Code clean up and add example""
This reverts commit ea08151ae6582a438db76b738293a0194c964b88.
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r--src/daemon/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index 34cbaf50..88e19a09 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.disk.cpu);
+ glibtop_get_disk_l (server, &resp->u.data.disk);
do_output (s, resp, _offset_data (disk), 0, NULL);
break;
case GLIBTOP_CMND_MEM: