[4.0] c37045f Keep only reqs and bereqs

Martin Blix Grydeland martin at varnish-software.com
Thu Mar 13 10:24:28 CET 2014


commit c37045f9a1d5740a6c4900a77b8f240bc982b8b2
Author: Guillaume Quintard <guillaume.quintard at gmail.com>
Date:   Thu Feb 6 17:37:21 2014 +0100

    Keep only reqs and bereqs

diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 1fed60b..01fc66d 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -198,6 +198,8 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
 	for (tr = pt[0]; tr != NULL; tr = *++pt) {
 		value = -1;
 		hit = 0;
+		if (tr->type != VSL_t_bereq && tr->type != VSL_t_req)
+			continue;
 		while ((1 == VSL_Next(tr->c))) {
 			/* get the value we want, and register if it's a hit*/
 			tag = VSL_TAG(tr->c->rec.ptr);



More information about the varnish-commit mailing list