diff options
author | James Dominic P. Guana <guana.histark@gmail.com> | 2020-05-23 08:26:34 +0800 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2020-11-04 13:38:03 +0000 |
commit | 9e62440b314fbf87bbeca865a4223311314c52a3 (patch) | |
tree | a2d4e2598e52ba8863182d76515caaed1dce65ab /src/daemon/main.c | |
parent | d49e17039e5ba43ab22e284b9764842011909984 (diff) | |
download | libgtop-9e62440b314fbf87bbeca865a4223311314c52a3.tar.gz |
New API to retrieve disk stats in Linux
Diffstat (limited to 'src/daemon/main.c')
-rw-r--r-- | src/daemon/main.c | 4 |
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); |