Fix unit of these (os.clock returns 's').
This commit is contained in:
parent
1f493f4ad3
commit
5a0cbbc844
@ -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
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user