aboutsummaryrefslogtreecommitdiffstats
path: root/src/satd-timer.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-31 18:11:44 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-31 18:11:44 +0100
commitea34e252fcd9dc41f5e3a3b68cafe417271a5515 (patch)
treef492e216aedf607fb7bd5b744fc1a6f2b8adb697 /src/satd-timer.c
parentm (diff)
downloadsat-ea34e252fcd9dc41f5e3a3b68cafe417271a5515.tar.gz
sat-ea34e252fcd9dc41f5e3a3b68cafe417271a5515.tar.bz2
sat-ea34e252fcd9dc41f5e3a3b68cafe417271a5515.tar.xz
fix some errors
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to '')
-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) {