made the copper repeat timeout configurable
This commit is contained in:
parent
10615bfecb
commit
d2a0fa5910
@ -1,5 +1,6 @@
|
|||||||
net = {}
|
net = {}
|
||||||
net.id = computer.address():sub(1,8)
|
net.id = computer.address():sub(1,8)
|
||||||
|
net.delay = 2
|
||||||
net.np = 4957
|
net.np = 4957
|
||||||
net.cache = true
|
net.cache = true
|
||||||
net.cache_time = 16
|
net.cache_time = 16
|
||||||
@ -89,7 +90,7 @@ spawn("copperd",function() print(xpcall(function ()
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
for k,v in pairs(ps) do
|
for k,v in pairs(ps) do
|
||||||
if v.lt < computer.uptime()-1 then
|
if v.lt < computer.uptime()-net.delay then
|
||||||
if fcache[v.nid] and net.cache then
|
if fcache[v.nid] and net.cache then
|
||||||
local lma = fcache[v.nid][1]
|
local lma = fcache[v.nid][1]
|
||||||
local rma = fcache[v.nid][2]
|
local rma = fcache[v.nid][2]
|
||||||
|
Loading…
Reference in New Issue
Block a user