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:
parent
3da01661ba
commit
fe66493fd7
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user