Update vendoring for github.com/beorn7/perks/quantile

This commit is contained in:
Ben Kochie 2016-12-16 12:53:18 +01:00
commit f1def04193
3 changed files with 24 additions and 3 deletions

View file

@ -133,7 +133,7 @@ func (s *Stream) Query(q float64) float64 {
if l == 0 {
return 0
}
i := int(float64(l) * q)
i := int(math.Ceil(float64(l) * q))
if i > 0 {
i -= 1
}