mirror of
https://github.com/sbrl/Minetest-WorldEditAdditions.git
synced 2024-11-26 00:53:00 +00:00
lru_benchmark: fix luacheck errors
This commit is contained in:
parent
3c414f2dbd
commit
a8e0a3088b
1 changed files with 2 additions and 2 deletions
|
@ -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 a new issue