Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Aug 2013 09:22:13 GMT
From:      Marcus Reid <marcus@blazingdot.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/181137: wmfuzzy updates far too frequently, chewing up CPU
Message-ID:  <201308080922.r789MDTI002481@oldred.freebsd.org>
Resent-Message-ID: <201308080930.r789U2Fk037911@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201308080922.r789MDTI002481>