Submitted by: sky
Fixes: ticket 253
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2737
d4fa192b-c00b-0410-8231-
f00ffab90ce4
void HSH_Unbusy(struct sess *sp);
void HSH_Ref(struct object *o);
void HSH_Deref(struct object *o);
+double HSH_Grace(double g);
void HSH_Init(void);
/* cache_http.c */
oe->timer_when = o->prefetch;
oe->timer_what = tmr_prefetch;
} else {
- oe->timer_when = o->ttl + o->grace;
+ oe->timer_when = o->ttl + HSH_Grace(o->grace);
oe->timer_what = tmr_ttl;
}
}
static struct hash_slinger *hash;
-static double
+double
HSH_Grace(double g)
{
if (isnan(g))