-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reduce technic_run interval if lag is too high / hot-reload offdelay …
…setting / cache-flush command
- Loading branch information
1 parent
60963ca
commit 8ab47b2
Showing
4 changed files
with
45 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters