Gentoo Archives: gentoo-commits

From: "Michele Noberasco (s4t4n)" <s4t4n@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/wmtimer/files: wmtimer-counter-fix.patch
Date: Tue, 28 Oct 2008 10:13:31
Message-Id: E1KulZp-00083q-Qb@stork.gentoo.org
1 s4t4n 08/10/28 10:13:29
2
3 Added: wmtimer-counter-fix.patch
4 Log:
5 Revision bump, with patch to fix bug #242500.
6 (Portage version: 2.1.4.5)
7
8 Revision Changes Path
9 1.1 x11-plugins/wmtimer/files/wmtimer-counter-fix.patch
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/wmtimer/files/wmtimer-counter-fix.patch?rev=1.1&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-plugins/wmtimer/files/wmtimer-counter-fix.patch?rev=1.1&content-type=text/plain
13
14 Index: wmtimer-counter-fix.patch
15 ===================================================================
16 --- wmtimer.c.orig 2004-01-29 02:45:48.000000000 +0000
17 +++ wmtimer.c 2008-10-17 20:49:05.000000000 +0100
18 @@ -128,7 +128,8 @@
19 switch (mode)
20 {
21 case TIMER:
22 - if (prevSec < thisTime->tm_sec)
23 + if ( (prevSec < thisTime->tm_sec)
24 + || ((prevSec == 59) && (thisTime->tm_sec == 0)))
25 {
26 decrementTimer();
27 updateACT();
28 @@ -138,7 +139,8 @@
29 prevSec = thisTime->tm_sec;
30 break;
31 case CHRONO:
32 - if (prevSec < thisTime->tm_sec)
33 + if ( (prevSec < thisTime->tm_sec)
34 + || ((prevSec == 59) && (thisTime->tm_sec == 0)))
35 {
36 incrementTimer();
37 updateACT();