aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-timer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/satd-timer.c')
-rw-r--r--src/satd-timer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/satd-timer.c b/src/satd-timer.c
index 310c23d..671555e 100644
--- a/src/satd-timer.c
+++ b/src/satd-timer.c
@@ -74,7 +74,7 @@ main(int argc, char *argv[])
t (clock_gettime(CLOCK_REALTIME, &realnow));
t (!(jobs = get_jobs()));
for (job = jobs; *job; job++) {
- if (timecmp(&(job[0]->ts), TIME(*job, now)) >= 0) {
+ if (timecmp(&(job[0]->ts), TIME(*job, now)) <= 0) {
sprintf(jobno, "%zu", job[0]->no);
remove_job(jobno, 2);
} else if (timecmp(&(job[0]->ts), &(TIME(*job, spec)->it_value)) > 0) {