diff options
author | Robert Roth <robert.roth.off@gmail.com> | 2017-05-12 05:14:17 +0300 |
---|---|---|
committer | Robert Roth <robert.roth.off@gmail.com> | 2017-05-12 05:14:17 +0300 |
commit | 5880e04fccef7c2e9a5f5a688e845bb1dc3b01a9 (patch) | |
tree | df13c52c94c3a3bf405f056e4ee9306fe6f62c4d /sysdeps | |
parent | 1bf16bfffd28e6724c35589e49db10a10cae594d (diff) | |
download | libgtop-5880e04fccef7c2e9a5f5a688e845bb1dc3b01a9.tar.gz |
Prepended disk io struct fields with disk_ prefix
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/linux/procio.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sysdeps/linux/procio.c b/sysdeps/linux/procio.c index 55a37fe9..2240022f 100644 --- a/sysdeps/linux/procio.c +++ b/sysdeps/linux/procio.c @@ -27,8 +27,8 @@ #include "glibtop_private.h" static const unsigned long _glibtop_sysdeps_proc_io = -(1L << GLIBTOP_PROC_IO_RCHAR) + (1L << GLIBTOP_PROC_IO_WCHAR) + -(1L << GLIBTOP_PROC_IO_RBYTES) + (1L << GLIBTOP_PROC_IO_WBYTES); +(1L << GLIBTOP_PROC_IO_DISK_RCHAR) + (1L << GLIBTOP_PROC_IO_DISK_WCHAR) + +(1L << GLIBTOP_PROC_IO_DISK_RBYTES) + (1L << GLIBTOP_PROC_IO_DISK_WBYTES); /* Init function. */ @@ -53,18 +53,18 @@ glibtop_get_proc_io_s (glibtop *server, glibtop_proc_io *buf, pid_t pid) return; p = skip_token (buffer); - buf->rchar = g_ascii_strtoull (p, &p, 10); + buf->disk_rchar = g_ascii_strtoull (p, &p, 10); p = skip_line (p); p = skip_token (p); - buf->wchar = g_ascii_strtoull (p, &p, 10); + buf->disk_wchar = g_ascii_strtoull (p, &p, 10); p = skip_line (p); p = skip_line (p); p = skip_line (p); p = skip_token (p); - buf->rbytes = g_ascii_strtoull (p, &p, 10); + buf->disk_rbytes = g_ascii_strtoull (p, &p, 10); p = skip_line (p); p = skip_token (p); - buf->wbytes = g_ascii_strtoull (p, &p, 10); + buf->disk_wbytes = g_ascii_strtoull (p, &p, 10); buf->flags = _glibtop_sysdeps_proc_io; } |