diff options
author | Benoît Dejean <bdejean@src.gnome.org> | 2008-03-02 18:07:22 +0000 |
---|---|---|
committer | Benoît Dejean <bdejean@src.gnome.org> | 2008-03-02 18:07:22 +0000 |
commit | 960d12822d236debb4764ef743fb241427744bb7 (patch) | |
tree | 7588d5d606047f74065dac59047d4bd25c1b6a98 /sysdeps | |
parent | f79f25f5ce926960313a4a74e50967adbbe91338 (diff) | |
download | libgtop-960d12822d236debb4764ef743fb241427744bb7.tar.gz |
Really set wchan.
svn path=/trunk/; revision=2718
Diffstat (limited to 'sysdeps')
-rw-r--r-- | sysdeps/linux/prockernel.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/linux/prockernel.c b/sysdeps/linux/prockernel.c index 258fa7e8..f05e1bdf 100644 --- a/sysdeps/linux/prockernel.c +++ b/sysdeps/linux/prockernel.c @@ -72,5 +72,7 @@ glibtop_get_proc_kernel_s (glibtop *server, glibtop_proc_kernel *buf, pid_t pid) buf->nwchan = strtoull (p, &p, 0); + proc_file_to_buffer(buf->wchan, sizeof buf->wchan, "/proc/%d/wchan", pid), + buf->flags = _glibtop_sysdeps_proc_kernel; } |