mirror of https://github.com/xzeldon/htop.git
Drop duplicate assignment
This commit is contained in:
parent
059810ca65
commit
e89b289494
|
@ -437,7 +437,6 @@ void ProcessList_goThroughEntries(ProcessList* this, bool pauseProcessUpdate) {
|
||||||
|
|
||||||
proc->m_size = kproc->kp_vm_map_size / 1024 / pageSizeKb;
|
proc->m_size = kproc->kp_vm_map_size / 1024 / pageSizeKb;
|
||||||
proc->m_resident = kproc->kp_vm_rssize;
|
proc->m_resident = kproc->kp_vm_rssize;
|
||||||
proc->percent_mem = (proc->m_resident * CRT_pageSizeKB) / (double)(this->totalMem) * 100.0;
|
|
||||||
proc->nlwp = kproc->kp_nthreads; // number of lwp thread
|
proc->nlwp = kproc->kp_nthreads; // number of lwp thread
|
||||||
proc->time = (kproc->kp_swtime + 5000) / 10000;
|
proc->time = (kproc->kp_swtime + 5000) / 10000;
|
||||||
|
|
||||||
|
|
|
@ -451,7 +451,6 @@ void ProcessList_goThroughEntries(ProcessList* this, bool pauseProcessUpdate) {
|
||||||
// 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 / pageSizeKb;
|
proc->m_size = kproc->ki_size / 1024 / pageSizeKb;
|
||||||
proc->m_resident = kproc->ki_rssize;
|
proc->m_resident = kproc->ki_rssize;
|
||||||
proc->percent_mem = (proc->m_resident * pageSizeKb) / (double)(this->totalMem) * 100.0;
|
|
||||||
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