summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvinash Sonawane <rootkea@gmail.com>2021-12-20 13:33:42 +0530
committerRobert Roth <robert.roth.off@gmail.com>2022-03-28 07:59:57 +0000
commitdf6393ac0cd785727329a97f731a4067334c0ace (patch)
treef8d271c2cc2d932d4706eea5bccb3b8706375444
parent7e9fed1513a7937b62bae641b76cee405c6add5a (diff)
downloadlibgtop-df6393ac0cd785727329a97f731a4067334c0ace.tar.gz
Pass correct parameter
-rw-r--r--src/daemon/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/daemon/main.c b/src/daemon/main.c
index cd940353..47a94586 100644
--- a/src/daemon/main.c
+++ b/src/daemon/main.c
@@ -226,8 +226,9 @@ handle_parent_connection (int s)
0, NULL);
break;
case GLIBTOP_CMND_PROC_IO:
+ memcpy (&pid, parameter, sizeof (pid_t));
glibtop_get_proc_io_l
- (server, &resp->u.data.proc_io, parameter);
+ (server, &resp->u.data.proc_io, pid);
do_output (s, resp, _offset_data (proc_io),
0, NULL);
break;