diff options
Diffstat (limited to 'www/varnish6/files/patch-bin_varnishhist_varnishhist.c')
-rw-r--r-- | www/varnish6/files/patch-bin_varnishhist_varnishhist.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/www/varnish6/files/patch-bin_varnishhist_varnishhist.c b/www/varnish6/files/patch-bin_varnishhist_varnishhist.c new file mode 100644 index 000000000000..5c708468cdf1 --- /dev/null +++ b/www/varnish6/files/patch-bin_varnishhist_varnishhist.c @@ -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) |