forked from MTSR/mapserver
adjust warning
This commit is contained in:
parent
75f2a7f2fe
commit
be157583ee
@ -97,8 +97,8 @@ function send_stats()
|
|||||||
|
|
||||||
local t2 = minetest.get_us_time()
|
local t2 = minetest.get_us_time()
|
||||||
local post_time = t2 - t1
|
local post_time = t2 - t1
|
||||||
if post_time > 10000 then
|
if post_time > 1000000 then -- warn if over a second
|
||||||
minetest.log("warning", "[mapserver-bridge] post took " .. process_time .. " us")
|
minetest.log("warning", "[mapserver-bridge] post took " .. post_time .. " us")
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO: error-handling
|
-- TODO: error-handling
|
||||||
|
Loading…
Reference in New Issue
Block a user