From be157583ee30c8969849a39779afb3901af01511 Mon Sep 17 00:00:00 2001 From: Thomas Rudin Date: Thu, 4 Apr 2019 17:54:50 +0200 Subject: [PATCH] adjust warning --- mapserver_mod/mapserver/bridge.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mapserver_mod/mapserver/bridge.lua b/mapserver_mod/mapserver/bridge.lua index 8f19b50..79cfe6e 100644 --- a/mapserver_mod/mapserver/bridge.lua +++ b/mapserver_mod/mapserver/bridge.lua @@ -97,8 +97,8 @@ function send_stats() local t2 = minetest.get_us_time() local post_time = t2 - t1 - if post_time > 10000 then - minetest.log("warning", "[mapserver-bridge] post took " .. process_time .. " us") + if post_time > 1000000 then -- warn if over a second + minetest.log("warning", "[mapserver-bridge] post took " .. post_time .. " us") end -- TODO: error-handling