Commit 604ab830 authored by Geoff Simmons's avatar Geoff Simmons

varnishevent: reader counter stats are all unsigned long

parent 2b85b01b
......@@ -92,8 +92,10 @@ static fd_t *fd_tbl;
VTAILQ_HEAD(insert_head_s, fd_t);
static struct insert_head_s insert_head = VTAILQ_HEAD_INITIALIZER(insert_head);
static unsigned seen = 0, open = 0, submitted = 0, not_logged = 0, occ_hi = 0,
len_hi = 0, waits = 0, fd_overflows = 0, len_overflows = 0,
static unsigned open = 0, occ_hi = 0, len_hi = 0;
static unsigned long seen = 0, submitted = 0, not_logged = 0,
waits = 0, fd_overflows = 0, len_overflows = 0,
hdr_overflows = 0, expired = 0, spec_mismatches = 0, wrong_tags = 0;
/* Hack, because we cannot have #ifdef in the macro definition SIGDISP */
......@@ -137,10 +139,10 @@ RDR_Waiting(void)
void
RDR_Stats(void)
{
LOG_Log(LOG_INFO, "Reader (%s): fd_max=%u seen=%u open=%u load=%.2f "
"submitted=%u not_logged=%u occ_hi=%u waits=%u expired=%u free=%u "
"len_hi=%u fd_overflows=%u len_overflows=%u hdr_overflows=%u "
"spec_mismatches=%u wrong_tags=%u",
LOG_Log(LOG_INFO, "Reader (%s): fd_max=%u seen=%lu open=%u load=%.2f "
"submitted=%lu not_logged=%lu occ_hi=%u waits=%lu expired=%lu free=%u "
"len_hi=%u fd_overflows=%lu len_overflows=%lu hdr_overflows=%lu "
"spec_mismatches=%lu wrong_tags=%lu",
waiting ? "waiting" : "running", config.max_fd, seen, open,
100.0 * open / config.max_fd, submitted, not_logged, occ_hi, waits,
expired, rdr_free, len_hi, fd_overflows, len_overflows, hdr_overflows,
......
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