MFH: r480668

www/varnish6: Add patch to fix output of varnishhist

Obtained from:	https://github.com/varnishcache/varnish-cache/issues/2780
This commit is contained in:
Mark Felder 2018-09-25 15:41:48 +00:00
parent f2fdc67b23
commit eff261da93
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/branches/2018Q3/; revision=480669
2 changed files with 12 additions and 1 deletions

View File

@ -3,7 +3,7 @@
PORTNAME= varnish
PORTVERSION= 6.0.1
DISTVERSIONPREFIX= varnish-
PORTREVISION= 0
PORTREVISION= 1
CATEGORIES= www
PKGNAMESUFFIX= 6

View File

@ -0,0 +1,11 @@
--- bin/varnishhist/varnishhist.c.orig 2018-08-29 09:52:28 UTC
+++ bin/varnishhist/varnishhist.c
@@ -299,7 +299,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transactio
continue;
/* select bucket */
- i = HIST_RES * lround(log(value) / log_ten);
+ i = lround(HIST_RES * log(value) / log_ten);
if (i < hist_low * HIST_RES)
i = hist_low * HIST_RES;
if (i >= hist_high * HIST_RES)