Arrays are 1-indexed (not zero) (#432)

This commit is contained in:
Tim Wilkinson 2022-07-14 11:05:33 -07:00 committed by GitHub
parent f55cdee1d2
commit ba55aed754
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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