On Thu, Oct 11, 2012 at 11:19 AM, Poul-Henning Kamp <[email protected]> wrote: > -------- > In message <[email protected]>, Poul-Henning Kamp writes: > > > Can you try this patch ? > > (NB: copy&pasted, you probably need to apply by hand...) > > (PS: and place open a ticket for this bug) > > diff --git a/lib/libvcl/vcc_expr.c b/lib/libvcl/vcc_expr.c > index 72c26a9..5223392 100644 > --- a/lib/libvcl/vcc_expr.c > +++ b/lib/libvcl/vcc_expr.c > @@ -847,6 +847,10 @@ vcc_expr_add(struct vcc *tl, struct expr **e, enum > var_type > ERRCHK(tl); > if (tk->tok == '-' && (*e)->fmt == TIME && e2->fmt == TIME) { > /* OK */ > + } else if (tk->tok == '+' && > + (*e)->fmt == TIME && e2->fmt == DURATION) { > + f2 = TIME; > + /* OK */ > } else if (tk->tok == '-' && > (*e)->fmt == BYTES && e2->fmt == BYTES) { > /* OK */
Yes, that works. f.- _______________________________________________ varnish-dev mailing list [email protected] https://www.varnish-cache.org/lists/mailman/listinfo/varnish-dev
