[master] 0cb0fe9fc Ignore values non-positive values.
Poul-Henning Kamp
phk at FreeBSD.org
Sun Sep 9 12:42:10 UTC 2018
commit 0cb0fe9fc1f4c3bb39b66c98efb40b629564ec9c
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Sun Sep 9 12:41:18 2018 +0000
Ignore values non-positive values.
Fixes: #2773
diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 52bb69a6d..1ef81f15f 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -295,7 +295,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
}
}
- if (skip || !match)
+ if (skip || !match || value <= 0)
continue;
/* select bucket */
More information about the varnish-commit
mailing list