ports/x11-clocks/wmfuzzy/files/patch-xdisplay.c
John Marino 2000fd9c85 x11-clocks/wmfuzzy: Update at 1 hertz instead of 10 khz
This fuzzy clock display only changes approximately every 5 minutes, so
it's crazy that it internally updates every 10 microseconds.  Save CPU
and let it sleep a second at a time.

While here, remove indefinite article from comment, remove unnecessary
NOPORTDOCS check, and indicate GPLv2 license.

PR:		ports/181137
Submitted-by:	Marcus Reid
2014-02-25 23:49:18 +00:00

11 lines
203 B
C

--- xdisplay.c.orig 2004-11-23 21:32:48.000000000 +0000
+++ xdisplay.c
@@ -383,7 +383,7 @@ void display_main_loop(void)
x_handle_event(&event);
}
- usleep(100);
+ sleep(1);
}
}