Commit b894a8d8 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Dridi Boukelmoune

I börked varnishhist by calling the lround function the wrong place.

Fixes: #2780
parent 443c4401
...@@ -299,7 +299,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[], ...@@ -299,7 +299,7 @@ accumulate(struct VSL_data *vsl, struct VSL_transaction * const pt[],
continue; continue;
/* select bucket */ /* select bucket */
i = HIST_RES * lround(log(value) / log_ten); i = lround(HIST_RES * log(value) / log_ten);
if (i < hist_low * HIST_RES) if (i < hist_low * HIST_RES)
i = hist_low * HIST_RES; i = hist_low * HIST_RES;
if (i >= hist_high * HIST_RES) if (i >= hist_high * HIST_RES)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment