summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Dejean <bdejean@gmail.com>2017-02-25 16:29:26 +0100
committerBenoit Dejean <bdejean@gmail.com>2017-02-25 16:29:26 +0100
commit07abbd2dfe5c734cbeadc27e17196c4b1d3a7188 (patch)
tree8b1188b2872bfc70e2a9dd1c8ca4baf9be368c76
parentafec9bbf58127a63008b0fd7bced797565079c14 (diff)
downloadlibgtop-07abbd2dfe5c734cbeadc27e17196c4b1d3a7188.tar.gz
Add slave proc_diskio handler.
-rw-r--r--src/daemon/slave.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
index 2858ee8a..ea0c674b 100644
--- a/src/daemon/slave.c
+++ b/src/daemon/slave.c
@@ -209,6 +209,14 @@ handle_slave_command (glibtop_command *cmnd, glibtop_response *resp,
resp->offset = _offset_data (proc_time);
break;
#endif
+#if GLIBTOP_SUID_PROC_DISKIO
+ case GLIBTOP_CMND_PROC_DISKIO:
+ memcpy (&pid, parameter, sizeof (pid_t));
+ glibtop_get_proc_diskio_p
+ (server, &resp->u.data.proc_diskio, pid);
+ resp->offset = _offset_data (proc_time);
+ break;
+#endif
#if GLIBTOP_SUID_PROC_SIGNAL
case GLIBTOP_CMND_PROC_SIGNAL:
memcpy (&pid, parameter, sizeof (pid_t));