mirror of https://github.com/xzeldon/htop.git
DragonFlyBSD: calculate whether to show entry last
Wait until it has been decided what kind of task the entry actually is.
This commit is contained in:
parent
b148a4bed2
commit
f47e88f5e8
|
@ -443,8 +443,6 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
||||||
Process* proc = ProcessList_getProcess(super, kproc->kp_ktaddr ? (pid_t)kproc->kp_ktaddr : kproc->kp_pid, &preExisting, DragonFlyBSDProcess_new);
|
Process* proc = ProcessList_getProcess(super, kproc->kp_ktaddr ? (pid_t)kproc->kp_ktaddr : kproc->kp_pid, &preExisting, DragonFlyBSDProcess_new);
|
||||||
DragonFlyBSDProcess* dfp = (DragonFlyBSDProcess*) proc;
|
DragonFlyBSDProcess* dfp = (DragonFlyBSDProcess*) proc;
|
||||||
|
|
||||||
proc->show = ! ((hideKernelThreads && Process_isKernelThread(proc)) || (hideUserlandThreads && Process_isUserlandThread(proc)));
|
|
||||||
|
|
||||||
if (!preExisting) {
|
if (!preExisting) {
|
||||||
dfp->jid = kproc->kp_jailid;
|
dfp->jid = kproc->kp_jailid;
|
||||||
if (kproc->kp_ktaddr && kproc->kp_flags & P_SYSTEM) {
|
if (kproc->kp_ktaddr && kproc->kp_flags & P_SYSTEM) {
|
||||||
|
@ -597,6 +595,7 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
||||||
if (proc->state == 'R')
|
if (proc->state == 'R')
|
||||||
super->runningTasks++;
|
super->runningTasks++;
|
||||||
|
|
||||||
|
proc->show = ! ((hideKernelThreads && Process_isKernelThread(proc)) || (hideUserlandThreads && Process_isUserlandThread(proc)));
|
||||||
proc->updated = true;
|
proc->updated = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue