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:
|
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:
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue