additional patch for 2 days to CPU usage problem

This commit is contained in:
Jeff Hill
1996-11-22 18:19:09 +00:00
parent 292bbca26b
commit 7aa17be09c

View File

@@ -288,11 +288,11 @@ SSCB *pSS;
* calculate the delay since this state was entered
*/
cur = tickGet();
if (cur>pSS->timeEntered) {
if (cur >= pSS->timeEntered) {
delay = cur - pSS->timeEntered;
}
else {
delay = cur + ULONG_MAX - pSS->timeEntered;
delay = cur + (ULONG_MAX - pSS->timeEntered);
}
delayMinInit = 0;