From 7396970afe2290488fd072612a650353dd13a16d Mon Sep 17 00:00:00 2001 From: "James Dominic P. Guana" Date: Tue, 26 May 2020 18:53:49 +0800 Subject: Code clean up and add example --- 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