Merge branch 'master' of github.com:XeonSquared/PsychOS

This commit is contained in:
Izaya 2017-09-12 17:50:44 +10:00
commit 7ee15582a1

View File

@ -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]