summaryrefslogtreecommitdiffstats
path: root/eval.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2016-02-04 14:32:39 -0500
committerTavian Barnes <tavianator@tavianator.com>2016-02-04 14:32:39 -0500
commit0a3754f8b66fc50dafeb61711679fc85c1e38038 (patch)
tree6a79b031b35df2726871c80910b5669fe4ef81e2 /eval.c
parentbff3576bedf7337d2cd7bd8f106519b38d128535 (diff)
downloadbfs-0a3754f8b66fc50dafeb61711679fc85c1e38038.tar.xz
Implements -daystart.
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index 258857c..2463d86 100644
--- a/eval.c
+++ b/eval.c
@@ -108,7 +108,7 @@ bool eval_acmtime(const struct expr *expr, struct eval_state *state) {
break;
}
- time_t diff = timespec_diff(&state->cl->now, time);
+ time_t diff = timespec_diff(&expr->reftime, time);
switch (expr->timeunit) {
case MINUTES:
diff /= 60;