Spelling corrections

This commit is contained in:
Christian Göttsche 2020-11-18 13:59:55 +01:00
parent f720868998
commit 0a2105eb22
2 changed files with 5 additions and 5 deletions

View File

@ -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:

View File

@ -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);