summaryrefslogtreecommitdiffstats
path: root/ProcessList.c
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2009-03-11 13:15:43 +0000
committerHisham Muhammad <hisham@gobolinux.org>2009-03-11 13:15:43 +0000
commit3b950e41896219c9d21f9bc13616bfc6333b345c (patch)
tree3d53d979f3fbfa92704071ee17bafcfb15002098 /ProcessList.c
parentb93e5c00b6cad873942a2709f990a0626d98e7be (diff)
BSD related fixes:
* BUGFIX: Correct page size calculation for FreeBSD systems (thanks to Andrew Paulsen) * Allow compilation without PLPA on systems that don't support it (thanks to Timothy Redaelli)
Diffstat (limited to 'ProcessList.c')
-rw-r--r--ProcessList.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ProcessList.c b/ProcessList.c
index 4ffd80da..24e08104 100644
--- a/ProcessList.c
+++ b/ProcessList.c
@@ -696,7 +696,7 @@ static bool ProcessList_processEntries(ProcessList* this, char* dirname, Process
period * 100.0;
process->percent_cpu = MAX(MIN(percent_cpu, processors*100.0), 0.0);
- process->percent_mem = (process->m_resident * PAGE_SIZE) /
+ process->percent_mem = (process->m_resident * PAGE_SIZE_KB) /
(float)(this->totalMem) *
100.0;

© 2014-2024 Faster IT GmbH | imprint | privacy policy