[master] 3d59f60e8 I börked varnishhist by calling the lround function the wrong place.
Poul-Henning Kamp
phk at FreeBSD.org
Mon Sep 24 11:24:17 UTC 2018
commit 3d59f60e84869fa4adea88b9e433a478922860b1
Author: Poul-Henning Kamp <phk at FreeBSD.org>
Date: Mon Sep 24 11:23:07 2018 +0000
I börked varnishhist by calling the lround function the wrong place.
Fixes: #2780
diff --git a/bin/varnishhist/varnishhist.c b/bin/varnishhist/varnishhist.c
index 48bfce265..c4f99a04a 100644
--- a/bin/varnishhist/varnishhist.c
+++ b/bin/varnishhist/varnishhist.c
@@ -299,7 +299,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
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)
More information about the varnish-commit
mailing list