oops, state cannot be two different values at once..

use || instead of &&
This commit is contained in:
Julian Elischer 2002-07-14 01:36:48 +00:00
parent e32cbadc61
commit ac8bcbb700

View File

@ -282,7 +282,7 @@ schedcpu(arg)
* the kse slptimes are not touched in wakeup
* because the thread may not HAVE a KSE
*/
if (ke->ke_state == KES_ONRUNQ &&
if (ke->ke_state == KES_ONRUNQ ||
ke->ke_state == KES_RUNNING) {
ke->ke_slptime++;
} else {