diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2009-03-11 13:15:43 +0000 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2009-03-11 13:15:43 +0000 |
commit | 3b950e41896219c9d21f9bc13616bfc6333b345c (patch) | |
tree | 3d53d979f3fbfa92704071ee17bafcfb15002098 /ProcessList.c | |
parent | b93e5c00b6cad873942a2709f990a0626d98e7be (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.c | 2 |
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; |