mirror of https://github.com/xzeldon/htop.git
Spelling corrections
This commit is contained in:
parent
f720868998
commit
0a2105eb22
|
@ -483,18 +483,18 @@ void ProcessList_goThroughEntries(ProcessList* super, bool pauseProcessUpdate) {
|
|||
case SACTIVE:
|
||||
switch (kproc->kp_lwp.kl_stat) {
|
||||
case LSSLEEP:
|
||||
if (kproc->kp_lwp.kl_flags & LWP_SINTR) // interruptable wait short/long
|
||||
if (kproc->kp_lwp.kl_flags & LWP_SINTR) // interruptible wait short/long
|
||||
if (kproc->kp_lwp.kl_slptime >= MAXSLP) {
|
||||
proc->state = 'I';
|
||||
isIdleProcess = true;
|
||||
} else {
|
||||
proc->state = 'S';
|
||||
}
|
||||
else if (kproc->kp_lwp.kl_tdflags & TDF_SINTR) // interruptable lwkt wait
|
||||
else if (kproc->kp_lwp.kl_tdflags & TDF_SINTR) // interruptible lwkt wait
|
||||
proc->state = 'S';
|
||||
else if (kproc->kp_paddr) // uninterruptable wait
|
||||
else if (kproc->kp_paddr) // uninterruptible wait
|
||||
proc->state = 'D';
|
||||
else // uninterruptable lwkt wait
|
||||
else // uninterruptible lwkt wait
|
||||
proc->state = 'B';
|
||||
break;
|
||||
case LSRUN:
|
||||
|
|
|
@ -257,7 +257,7 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui
|
|||
fclose(statfile);
|
||||
}
|
||||
|
||||
// Initialze CPU count
|
||||
// Initialize CPU count
|
||||
{
|
||||
int cpus = LinuxProcessList_computeCPUcount();
|
||||
pl->cpuCount = MAXIMUM(cpus, 1);
|
||||
|
|
Loading…
Reference in New Issue