summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJames Dominic P. Guana <guana.histark@gmail.com>2021-04-10 18:19:15 +0800
committerRobert Roth <robert.roth.off@gmail.com>2021-04-23 09:48:11 +0000
commita067db056927db232a2eb8cf79d4af096962eced (patch)
tree6030559a5da1d14a3eb6c25fb47fe00176aa908c /src
parent68b52696076f270e590b8627a2d2f77660f6c436 (diff)
downloadlibgtop-a067db056927db232a2eb8cf79d4af096962eced.tar.gz
Revert "Revert "New API to retrieve disk stats in Linux""
This reverts commit 7e214414bf23d1ea34e7fdccb17a7f41040ffea9.
Diffstat (limited to 'src')
-rw-r--r--src/daemon/main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index b51addf6..34cbaf50 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -97,6 +97,10 @@ handle_parent_connection (int s)
glibtop_get_cpu_l (server, &resp->u.data.cpu);
do_output (s, resp, _offset_data (cpu), 0, NULL);
break;
+ case GLIBTOP_CMND_DISK:
+ glibtop_get_disk_l (server, &resp->u.disk.cpu);
+ do_output (s, resp, _offset_data (disk), 0, NULL);
+ break;
case GLIBTOP_CMND_MEM:
glibtop_get_mem_l (server, &resp->u.data.mem);
do_output (s, resp, _offset_data (mem), 0, NULL);