git: powerd - Fix load factor calculation bug for niced processes

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Apr 18 10:18:49 PDT 2013


commit 3eee038f3b9464c9cd81498d7d2e3c16f252ba5a
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Thu Apr 18 10:17:49 2013 -0700

    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!

Summary of changes:
 usr.sbin/powerd/powerd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/3eee038f3b9464c9cd81498d7d2e3c16f252ba5a


-- 
DragonFly BSD source repository



More information about the Commits mailing list