[libgtop] Pass correct parameter



commit df6393ac0cd785727329a97f731a4067334c0ace
Author: Avinash Sonawane <rootkea gmail com>
Date:   Mon Dec 20 13:33:42 2021 +0530

    Pass correct parameter

 src/daemon/main.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
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;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]