mirror of https://github.com/xzeldon/htop.git
fix process memory on FreeBSD
This commit is contained in:
parent
b6f927bffa
commit
bb0333e45d
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue