diff options
author | James Dominic P. Guana <guana.histark@gmail.com> | 2020-05-26 18:53:49 +0800 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2020-11-04 13:38:03 +0000 |
commit | 7396970afe2290488fd072612a650353dd13a16d (patch) | |
tree | 4600f2a3144f25a578138164f85ef91c70aecfc3 /src/daemon/main.c | |
parent | 9cbb3b91f11ad0c4944a1428d609201c054cffab (diff) | |
download | libgtop-7396970afe2290488fd072612a650353dd13a16d.tar.gz |
Code clean up and add example
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r-- | src/daemon/main.c | 2 |
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: |