[6.1] 96121b696 I börked varnishhist by calling the lround function the wrong place.

hermunn hermunn at varnish-software.com
Wed Oct 24 09:29:13 UTC 2018


commit 96121b696aeef59064cb1899011ceb786cafdb12
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