Code clean up and add example

This commit is contained in:
James Dominic P. Guana
2020-05-26 18:53:49 +08:00
committed by Robert Roth
parent 9cbb3b91f1
commit 7396970afe
21 changed files with 238 additions and 20 deletions

View File

@@ -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: