Author: ivoras
Date: Tue Feb 23 15:27:07 2010
New Revision: 204249
URL: http://svn.freebsd.org/changeset/base/204249

Log:
  The New and Improved snake_server - Service Pack 1: now even more
  sensitive to load average variations!

Modified:
  head/sys/dev/syscons/snake/snake_saver.c

Modified: head/sys/dev/syscons/snake/snake_saver.c
==============================================================================
--- head/sys/dev/syscons/snake/snake_saver.c    Tue Feb 23 15:12:41 2010        
(r204248)
+++ head/sys/dev/syscons/snake/snake_saver.c    Tue Feb 23 15:27:07 2010        
(r204249)
@@ -114,7 +114,7 @@ snake_saver(video_adapter_t *adp, int bl
                savs[0] += dirx + diry;
                if (FANCY_SNAKE) {
                        update_msg();
-                       load = LOAD_HIGH(averunnable.ldavg[0]) * 100;
+                       load = ((averunnable.ldavg[0] * 100 + FSCALE / 2) >> 
FSHIFT);
                        if (load == 0)
                                color = FG_LIGHTGREY | BG_BLACK;
                        else if (load / mp_ncpus <= 50)
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to