]> git.webhop.me Git - lcd4linux.git/commitdiff
According to its man page, timercmp() is broken on some systems -- applied the recomm...
authormzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 4 Feb 2010 13:18:13 +0000 (13:18 +0000)
committermzuther <mzuther@3ae390bd-cb1e-0410-b409-cd5a39f66f1f>
Thu, 4 Feb 2010 13:18:13 +0000 (13:18 +0000)
git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1100 3ae390bd-cb1e-0410-b409-cd5a39f66f1f

timer.c

diff --git a/timer.c b/timer.c
index 5ac2965d31b88860128834d4db72155a8bb2c30a..3bb504df70a1e980422e9163b677d534d1cc397a 100644 (file)
--- a/timer.c
+++ b/timer.c
@@ -174,7 +174,7 @@ int timer_process(struct timespec *delay)
     for (i = 0; i < nTimers; i++) {
        if (Timers[i].active == 0)
            continue;
-       if (timercmp(&Timers[i].when, &now, <=)) {
+       if (!timercmp(&Timers[i].when, &now, >)) {
            flag = 1;
            /* callback */
            if (Timers[i].callback != NULL) {