From owner-freebsd-ports-bugs@FreeBSD.ORG Thu Aug 8 09:30:02 2013 Return-Path: Delivered-To: freebsd-ports-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 90B36C81 for ; Thu, 8 Aug 2013 09:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5751622F9 for ; Thu, 8 Aug 2013 09:30:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r789U2ON037912 for ; Thu, 8 Aug 2013 09:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r789U2Fk037911; Thu, 8 Aug 2013 09:30:02 GMT (envelope-from gnats) Resent-Date: Thu, 8 Aug 2013 09:30:02 GMT Resent-Message-Id: <201308080930.r789U2Fk037911@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Marcus Reid Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 004DC93E for ; Thu, 8 Aug 2013 09:22:14 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id E2F762253 for ; Thu, 8 Aug 2013 09:22:14 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r789MD2C002484 for ; Thu, 8 Aug 2013 09:22:13 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r789MDTI002481; Thu, 8 Aug 2013 09:22:13 GMT (envelope-from nobody) Message-Id: <201308080922.r789MDTI002481@oldred.freebsd.org> Date: Thu, 8 Aug 2013 09:22:13 GMT From: Marcus Reid To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: ports/181137: wmfuzzy updates far too frequently, chewing up CPU X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Aug 2013 09:30:02 -0000 >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: