mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-09-12 08:08:30 +02:00
lru_benchmark: fix luacheck errors
This commit is contained in:
parent
3c414f2dbd
commit
a8e0a3088b
@ -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()
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user