From: phk Date: Fri, 21 Sep 2007 10:38:01 +0000 (+0000) Subject: A temporary work-around for #161 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=175617813aa294837bcc2543abbd407fb87deddb;p=varnish A temporary work-around for #161 git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1978 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/cache_center.c b/varnish-cache/bin/varnishd/cache_center.c index 3e90146c..809cb0e1 100644 --- a/varnish-cache/bin/varnishd/cache_center.c +++ b/varnish-cache/bin/varnishd/cache_center.c @@ -429,6 +429,7 @@ cnt_hit(struct sess *sp) /* Experimental. Reduce health parameter of backend towards zero * if it has been more than a minute since it was checked. */ CHECK_OBJ_NOTNULL(sp->backend, BACKEND_MAGIC); +if (0) { time_diff = TIM_mono() - sp->backend->last_check; minutes = time_diff / 60; if (minutes > sp->backend->minute_limit) { @@ -436,6 +437,7 @@ cnt_hit(struct sess *sp) sp->backend->health = (int)((double)sp->backend->health / 2); VBE_UpdateHealth(sp, NULL, 0); } +} VCL_hit_method(sp);