summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 0c0db28)
raw | patch | inline | side by side (parent: 0c0db28)
author | Doug MacEachern <dougm@hyperic.com> | |
Fri, 17 Apr 2009 02:53:49 +0000 (19:53 -0700) | ||
committer | Florian Forster <octo@huhu.verplant.org> | |
Fri, 17 Apr 2009 08:56:54 +0000 (10:56 +0200) |
Fixes:
processes.c: In function 'ps_read':
processes.c:328: warning: 'pse.vmem_size' is used uninitialized in this function
processes.c:1300: note: 'pse.vmem_size' was declared here
processes.c:330: warning: 'pse.stack_size' is used uninitialized in this function
processes.c:1300: note: 'pse.stack_size' was declared here
Signed-off-by: Doug MacEachern <dougm@hyperic.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
processes.c: In function 'ps_read':
processes.c:328: warning: 'pse.vmem_size' is used uninitialized in this function
processes.c:1300: note: 'pse.vmem_size' was declared here
processes.c:330: warning: 'pse.stack_size' is used uninitialized in this function
processes.c:1300: note: 'pse.stack_size' was declared here
Signed-off-by: Doug MacEachern <dougm@hyperic.com>
Signed-off-by: Florian Forster <octo@huhu.verplant.org>
src/processes.c | patch | blob | history |
diff --git a/src/processes.c b/src/processes.c
index 8cf2562e8886b04b2dd7aa27ee681cc5dbb6c5b2..387db5943c2569fdafccc2e2f1edbf7e05814843 100644 (file)
--- a/src/processes.c
+++ b/src/processes.c
pse.num_proc = 1;
pse.num_lwp = procs[i].ki_numthreads;
+ pse.vmem_size = procs[i].ki_size;
pse.vmem_rss = procs[i].ki_rssize * getpagesize();
+ pse.stack_size = procs[i].ki_ssize * getpagesize();
pse.vmem_minflt = 0;
pse.vmem_minflt_counter = procs[i].ki_rusage.ru_minflt;
pse.vmem_majflt = 0;