summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/timer.c b/kernel/timer.c
index 591c5e29d..b94df1dc3 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -577,7 +577,7 @@ static void update_process_times(int user_tick)
p->counter = 0;
p->need_resched = 1;
}
- if (p->nice < 0)
+ if (p->nice > 0)
kstat.cpu_nice += user_tick;
else
kstat.cpu_user += user_tick;