From 07abbd2dfe5c734cbeadc27e17196c4b1d3a7188 Mon Sep 17 00:00:00 2001 From: Benoit Dejean Date: Sat, 25 Feb 2017 16:29:26 +0100 Subject: [PATCH] Add slave proc_diskio handler. --- src/daemon/slave.c | 8 ++++++++ 1 file changed, 8 insertions(+) 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));