mirror of
https://github.com/minetest-mods/technic.git
synced 2025-11-08 19:25:29 +01:00
move "max_lag" function a layer up
This commit is contained in:
@@ -7,7 +7,6 @@ dofile(path.."/LV/init.lua")
|
||||
dofile(path.."/MV/init.lua")
|
||||
dofile(path.."/HV/init.lua")
|
||||
|
||||
dofile(path.."/max_lag.lua")
|
||||
dofile(path.."/switching_station.lua")
|
||||
dofile(path.."/switching_station_globalstep.lua")
|
||||
|
||||
|
||||
@@ -1,15 +0,0 @@
|
||||
local function explode(sep, input)
|
||||
local t={}
|
||||
local i=0
|
||||
for k in string.gmatch(input,"([^"..sep.."]+)") do
|
||||
t[i]=k
|
||||
i=i+1
|
||||
end
|
||||
return t
|
||||
end
|
||||
|
||||
function technic.get_max_lag()
|
||||
local arrayoutput = explode(", ",minetest.get_server_status())
|
||||
local arrayoutput2 = explode("=",arrayoutput[4])
|
||||
return tonumber(arrayoutput2[1])
|
||||
end
|
||||
Reference in New Issue
Block a user