[6.0] b894a8d8b I börked varnishhist by calling the lround function the wrong place.

Dridi Boukelmoune dridi.boukelmoune at gmail.com
Wed Oct 31 13:08:18 UTC 2018


commit b894a8d8b8610618e1537c0f323061f7089aac15
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