mirror of https://github.com/aredn/aredn.git
Arrays are 1-indexed (not zero) (#432)
This commit is contained in:
parent
f55cdee1d2
commit
ba55aed754
|
@ -370,8 +370,8 @@ html.write("const p=[")
|
|||
for _, b in ipairs(fbuckets)
|
||||
do
|
||||
if #b > 0 then
|
||||
local l = b[math.floor(#b * 0.50)]
|
||||
local m = b[math.floor(#b * 0.95)]
|
||||
local l = b[1 + math.floor(#b * 0.50)]
|
||||
local m = b[1 + math.floor(#b * 0.95)]
|
||||
local h = b[#b]
|
||||
html.write(l .. "," .. (m-l) .. "," .. (h-m) .. ",")
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue