made the copper repeat timeout configurable

This commit is contained in:
Izaya 2017-09-12 17:43:41 +10:00
parent 10615bfecb
commit d2a0fa5910

View File

@ -1,5 +1,6 @@
net = {}
net.id = computer.address():sub(1,8)
net.delay = 2
net.np = 4957
net.cache = true
net.cache_time = 16
@ -89,7 +90,7 @@ spawn("copperd",function() print(xpcall(function ()
end
end
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
local lma = fcache[v.nid][1]
local rma = fcache[v.nid][2]