Skip to content

Commit 15ddc8c

Browse files
author
Andrei Sidorov
committed
fix3
1 parent 5f0c908 commit 15ddc8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

metrics/quantile.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ function stream:query(q)
165165

166166
local p = s.l[0]
167167
local r = 0
168-
for i = 1, s.l_len-1 do
168+
for i = 1, s.l_len-1 do -- samples buffer indexing starts from 0 to length-1
169169
local c = s.l[i]
170170
if r + c.Width + c.Delta > t then
171171
return p.Value

0 commit comments

Comments
 (0)