mirror of
https://github.com/minetest-mods/technic.git
synced 2024-11-15 23:10:41 +01:00
16 lines
385 B
Lua
16 lines
385 B
Lua
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
|