Commit 1bedac1c authored by Hisham Muhammad's avatar Hisham Muhammad
Browse files

Merge pull request #363 from myfreeweb/freebsd-memory-fix

Fix process memory on FreeBSD
parents 011bf30d bb0333e4
...@@ -477,8 +477,8 @@ void ProcessList_goThroughEntries(ProcessList* this) { ...@@ -477,8 +477,8 @@ void ProcessList_goThroughEntries(ProcessList* this) {
} }
// from FreeBSD source /src/usr.bin/top/machine.c // from FreeBSD source /src/usr.bin/top/machine.c
proc->m_size = kproc->ki_size / 1024; proc->m_size = kproc->ki_size / 1024 / pageSizeKb;
proc->m_resident = kproc->ki_rssize * pageSizeKb; proc->m_resident = kproc->ki_rssize;
proc->nlwp = kproc->ki_numthreads; proc->nlwp = kproc->ki_numthreads;
proc->time = (kproc->ki_runtime + 5000) / 10000; proc->time = (kproc->ki_runtime + 5000) / 10000;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment