Commit 756120bc authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Use default_grace consistently or it will all be in vain.

Submitted by:	sky
Fixes:	ticket 253



git-svn-id: http://www.varnish-cache.org/svn/trunk/varnish-cache@2737 d4fa192b-c00b-0410-8231-f00ffab90ce4
parent 85fd57d8
......@@ -462,6 +462,7 @@ struct object *HSH_Lookup(struct sess *sp);
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 */
......
......@@ -147,7 +147,7 @@ update_object_when(const struct object *o)
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;
}
}
......
......@@ -67,7 +67,7 @@
static struct hash_slinger *hash;
static double
double
HSH_Grace(double g)
{
if (isnan(g))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment