Fix unit of these (os.clock returns 's').

This commit is contained in:
Auke Kok 2019-09-15 21:07:48 -07:00
parent 1f493f4ad3
commit 5a0cbbc844
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ function boxes.save(minp, maxp)
local cc = minetest.compress(raw_data, "deflate")
local t3 = os.clock()
minetest.log("action", "boxes.save: " .. ((t2 - t1) * 100) .. ", " .. ((t3 - t2) * 100))
minetest.log("action", "boxes.save: " .. (t2 - t1) .. ", " .. (t3 - t2))
return cc
end

View File

@ -112,7 +112,7 @@ function boxes.cleanup(minp, maxp)
vm:update_map()
t_m = os.clock() - t_m
minetest.log("action", "boxes.cleanup: " .. (t_e * 100) .. "s, " .. (t_a * 100) .. "s, " .. (t_m * 100))
minetest.log("action", "boxes.cleanup: " .. t_e .. "s, " .. t_a .. "s, " .. t_m)
minetest.after(0.1, minetest.fix_light, minp, maxp)
end