]> err.no Git - varnish/commitdiff
Re-enable the code causing bug #161 (which is now fixed)
authorcecilihf <cecilihf@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 24 Sep 2007 13:21:27 +0000 (13:21 +0000)
committercecilihf <cecilihf@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 24 Sep 2007 13:21:27 +0000 (13:21 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2013 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/cache_center.c

index bf292d8f23a782f6c4516328a9ddeb20fba41620..31cb982949964558139abbcf1f0bbb53dfd1ed14 100644 (file)
@@ -431,7 +431,6 @@ 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) {
@@ -439,7 +438,6 @@ if (0) {
                sp->backend->health = (int)((double)sp->backend->health / 2);
                VBE_UpdateHealth(sp, NULL, 0);
        }
-}
 
        VCL_hit_method(sp);