lru_benchmark: fix luacheck errors

This commit is contained in:
Starbeamrainbowlabs 2021-07-30 19:53:29 +01:00
parent 3c414f2dbd
commit a8e0a3088b
No known key found for this signature in database
GPG Key ID: 1BE5172E637709C2

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