From 2ec1815e6ce8da65244c18fbad56c06721f737cb Mon Sep 17 00:00:00 2001 From: "James Dominic P. Guana" Date: Sat, 10 Apr 2021 18:20:21 +0800 Subject: Revert "Revert "Code clean up and add example"" This reverts commit ea08151ae6582a438db76b738293a0194c964b88. --- src/daemon/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/daemon/main.c') 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: -- cgit v1.2.1