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:
parent
f2fdc67b23
commit
eff261da93
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/branches/2018Q3/; revision=480669
|
@ -3,7 +3,7 @@
|
|||
PORTNAME= varnish
|
||||
PORTVERSION= 6.0.1
|
||||
DISTVERSIONPREFIX= varnish-
|
||||
PORTREVISION= 0
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= www
|
||||
PKGNAMESUFFIX= 6
|
||||
|
||||
|
|
11
www/varnish6/files/patch-bin_varnishhist_varnishhist.c
Normal file
11
www/varnish6/files/patch-bin_varnishhist_varnishhist.c
Normal 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)
|
Loading…
Reference in New Issue
Block a user