wmcalclock: added patch to decrease wakeup frequency
This commit is contained in:
parent
f796170072
commit
00e46772d0
@ -1,2 +1,3 @@
|
||||
696105b78b175db75b2aa2dc30a56fc9 wmCalClock-1.25-makefile.patch
|
||||
a401ded0e1fee4bcc4623076159bca41 wmCalClock-1.25.tar.gz
|
||||
a15ed4438234e11e65826c70d3c8cbe4 wmCalClock-increase-delay.patch
|
||||
|
@ -1,18 +1,21 @@
|
||||
# Description: A Calendar clock applet with antialiased text.
|
||||
# URL: http://www.dockapps.org/file.php/id/9
|
||||
# Maintainer: Mikhail Kolesnik, mike at openbunker dot org
|
||||
# Depends on: x11
|
||||
# Depends on: xorg-libxpm
|
||||
|
||||
name=wmcalclock
|
||||
version=1.25
|
||||
release=1
|
||||
release=2
|
||||
# author's page is gone
|
||||
source=(http://www.cs.mun.ca/~gstarkes/wmaker/dockapps/files/wmCalClock-$version.tar.gz\
|
||||
wmCalClock-$version-makefile.patch)
|
||||
wmCalClock-$version-makefile.patch \
|
||||
wmCalClock-increase-delay.patch)
|
||||
|
||||
build() {
|
||||
cd wmCalClock-$version
|
||||
patch -p1 -i $SRC/wmCalClock-$version-makefile.patch
|
||||
# allows to wake up less frequently
|
||||
patch -p1 -i $SRC/wmCalClock-increase-delay.patch
|
||||
cd Src
|
||||
make
|
||||
DEST=$PKG/usr make install
|
||||
|
24
wmcalclock/wmCalClock-increase-delay.patch
Normal file
24
wmcalclock/wmCalClock-increase-delay.patch
Normal file
@ -0,0 +1,24 @@
|
||||
diff -Nru wmCalClock-1.25-orig/Src/wmCalClock.c wmCalClock-1.25/Src/wmCalClock.c
|
||||
--- wmCalClock-1.25-orig/Src/wmCalClock.c 2008-04-14 21:42:35.238408669 +0300
|
||||
+++ wmCalClock-1.25/Src/wmCalClock.c 2008-04-14 21:44:51.431407346 +0300
|
||||
@@ -104,7 +104,7 @@
|
||||
/*
|
||||
* Delay between refreshes (in microseconds)
|
||||
*/
|
||||
-#define DELAY 10000L
|
||||
+#define DELAY 200000L
|
||||
#define WMCALCLOCK_VERSION "1.25"
|
||||
|
||||
|
||||
@@ -729,9 +729,9 @@
|
||||
if( HasExecute == 1) {
|
||||
usleep(DELAY);
|
||||
} else if( ShowSeconds == 1) {
|
||||
- usleep( 200000L);
|
||||
- } else {
|
||||
usleep( 500000L);
|
||||
+ } else {
|
||||
+ usleep( 1000000L);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user