aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/timer.c b/timer.c
index 5ac2965..3bb504d 100644
--- 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) {