1
0
mirror of https://github.com/XeonSquared/OC-Copper.git synced 2024-11-23 01:48:06 +11:00

Remove weird random component from LKR cache tuning

It appears that (relib total attempt timer) / 2 is the best choice, since it leaves ample time to adapt to new routing graphs.
This commit is contained in:
20kdc 2017-08-16 23:29:40 +01:00 committed by GitHub
parent 3da01661ba
commit fe66493fd7

View File

@ -47,8 +47,8 @@ return function (hostname, transmit, onReceive, time)
-- Expect another packet after this amount of time,
-- or else clear the known receivers cache entry.
-- Minimum should be less or equal to tuningAttempts *
-- tuningAttemptTime in relib.
local tuningExpectContinue = 15 + math.random(15)
-- tuningAttemptTime in relib. (Actually should be that /2 optimally. Adjusted accordingly.)
local tuningExpectContinue = 15
-- Flush the loop detector every so often.
-- This is not a complete clear.