[libgtop/wip/diskio] Add slave proc_diskio handler.
- From: Benoît Dejean <bdejean src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libgtop/wip/diskio] Add slave proc_diskio handler.
- Date: Sat, 25 Feb 2017 15:47:11 +0000 (UTC)
commit 07abbd2dfe5c734cbeadc27e17196c4b1d3a7188
Author: Benoit Dejean <bdejean gmail com>
Date: Sat Feb 25 16:29:26 2017 +0100
Add slave proc_diskio handler.
src/daemon/slave.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/daemon/slave.c b/src/daemon/slave.c
index 2858ee8..ea0c674 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));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]