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: case SACTIVE:
switch (kproc->kp_lwp.kl_stat) { switch (kproc->kp_lwp.kl_stat) {
case LSSLEEP: 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) { if (kproc->kp_lwp.kl_slptime >= MAXSLP) {
proc->state = 'I'; proc->state = 'I';
isIdleProcess = true; isIdleProcess = true;
} else { } else {
proc->state = 'S'; 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'; proc->state = 'S';
else if (kproc->kp_paddr) // uninterruptable wait else if (kproc->kp_paddr) // uninterruptible wait
proc->state = 'D'; proc->state = 'D';
else // uninterruptable lwkt wait else // uninterruptible lwkt wait
proc->state = 'B'; proc->state = 'B';
break; break;
case LSRUN: case LSRUN:

View File

@ -257,7 +257,7 @@ ProcessList* ProcessList_new(UsersTable* usersTable, Hashtable* pidMatchList, ui
fclose(statfile); fclose(statfile);
} }
// Initialze CPU count // Initialize CPU count
{ {
int cpus = LinuxProcessList_computeCPUcount(); int cpus = LinuxProcessList_computeCPUcount();
pl->cpuCount = MAXIMUM(cpus, 1); pl->cpuCount = MAXIMUM(cpus, 1);