Only add one tick per tick to the thread stats, instead of some random number.

This commit is contained in:
Julian Elischer 2003-01-31 22:14:46 +00:00
parent d61fae8409
commit ff92b12dce
2 changed files with 4 additions and 4 deletions

View File

@ -1066,10 +1066,10 @@ thread_statclock(int user)
if (user) {
/* Current always do via ast() */
td->td_flags |= (TDF_ASTPENDING|TDF_USTATCLOCK);
td->td_uuticks += ticks;
td->td_uuticks++;
} else {
if (td->td_mailbox != NULL)
td->td_usticks += ticks;
td->td_usticks++;
else {
/* XXXKSE
* We will call thread_user_enter() for every

View File

@ -1066,10 +1066,10 @@ thread_statclock(int user)
if (user) {
/* Current always do via ast() */
td->td_flags |= (TDF_ASTPENDING|TDF_USTATCLOCK);
td->td_uuticks += ticks;
td->td_uuticks++;
} else {
if (td->td_mailbox != NULL)
td->td_usticks += ticks;
td->td_usticks++;
else {
/* XXXKSE
* We will call thread_user_enter() for every