/*
- * $Id: http.cc,v 1.212 1997/10/31 20:37:06 wessels Exp $
+ * $Id: http.cc,v 1.213 1997/10/31 20:46:23 wessels Exp $
*
* DEBUG: section 11 Hypertext Transfer Protocol (HTTP)
* AUTHOR: Harvest Derived
BIT_SET(httpState->flags, HTTP_PROXYING);
if (req->method == METHOD_GET) {
if (p) {
- d = (double) p->stats.n_keepalives_recv / (double) ++p->stats.n_keepalives_sent;
+ d = (double) p->stats.n_keepalives_recv /
+ (double) ++p->stats.n_keepalives_sent;
if ((xcount++ & 0x3F) == 0)
debug(0, 0) ("%s Keepalive Ratio = %f\n", p->host, d);
if (d > 0.50 || p->stats.n_keepalives_sent < 10)
/*
- * $Id: stat.cc,v 1.164 1997/10/27 22:54:38 wessels Exp $
+ * $Id: stat.cc,v 1.165 1997/10/31 20:46:24 wessels Exp $
*
* DEBUG: section 18 Cache Manager Statistics
* AUTHOR: Harvest Derived
storeAppendPrintf(sentry, "!%s ", d->domain);
}
storeAppendPrintf(sentry, close_bracket); /* } */
+ storeAppendPrintf(sentry, "{Keep-Alive Ratio: %d%%}\n",
+ percent(e->stats.n_keepalives_recv, e->stats.n_keepalives_sent));
}
storeAppendPrintf(sentry, close_bracket);
}