powerd - Fix load factor calculation bug for niced processes
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 18 Apr 2013 17:17:49 +0000 (10:17 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 18 Apr 2013 17:17:49 +0000 (10:17 -0700)
commit3eee038f3b9464c9cd81498d7d2e3c16f252ba5a
tree7382d567c8b9be9e3d39caec9292e38faa3e83b9
parent20c2db9a8c979ada6dc243956b24d9949a7e1faf
powerd - Fix load factor calculation bug for niced processes

* A type-o in the load calculation code was not counting niced
  processes at all, so if you have a lot of niced processes
  (like ffmpeg's which nice themselves down), powerd can wind
  up restricting them all to a single cpu.  Doh!
usr.sbin/powerd/powerd.c