ports/181137: wmfuzzy updates far too frequently, chewing up CPU

Marcus Reid marcus at blazingdot.com
Thu Aug 8 09:30:02 UTC 2013


>Number:         181137
>Category:       ports
>Synopsis:       wmfuzzy updates far too frequently, chewing up CPU
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 08 09:30:01 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Marcus Reid
>Release:        10-CURRENT
>Organization:
>Environment:
>Description:
Since the display actually changes every five minutes or so, sleeping only 100 usec and checking the time 10,000 per second is overkill.  The fix is a very simple patch.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

--- xdisplay.c.orig	2013-08-08 02:11:37.640353827 -0700
+++ xdisplay.c	2013-08-08 02:12:27.938396262 -0700
@@ -383,7 +383,7 @@
       x_handle_event(&event);
     }
 
-    usleep(100);
+    sleep(1);
   }
 }
 


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list