Commit 52f4fc0b authored by Linus Torvalds's avatar Linus Torvalds

Fix off-by-one error reported by Anton Lavrentiev: we no

longer count the idle thread in "nr_threads", so we should
not discount it when returning sysinfo() information.
parent 35365501
......@@ -26,7 +26,7 @@ asmlinkage long sys_sysinfo(struct sysinfo *info)
val.loads[1] = avenrun[1] << (SI_LOAD_SHIFT - FSHIFT);
val.loads[2] = avenrun[2] << (SI_LOAD_SHIFT - FSHIFT);
val.procs = nr_threads-1;
val.procs = nr_threads;
sti();
si_meminfo(&val);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment