lru_benchmark: fix luacheck errors

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 19:53:29 +01:00
parent 3c414f2dbd
commit a8e0a3088b
Signed by: sbrl
GPG Key ID: 1BE5172E637709C2
1 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ local values = {
}
-- From http://lua-users.org/wiki/SimpleRound
function round(num, numDecimalPlaces)
local function round(num, numDecimalPlaces)
local mult = 10^(numDecimalPlaces or 0)
return math.floor(num * mult + 0.5) / mult
end
@ -37,7 +37,7 @@ end
local values_count = #values
function test(size)
local function test(size)
local cpu_start = os.clock()