diff options
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; |