Jitter proportionate to size
Not not default size
This commit is contained in:
parent
95aa1c632b
commit
589d947c01
1 changed files with 6 additions and 3 deletions
|
@ -593,8 +593,11 @@ init([Opts]) ->
|
|||
% Start from file not snapshot
|
||||
{InkerOpts, PencillerOpts} = set_options(Opts),
|
||||
|
||||
CacheJitter = ?CACHE_SIZE div (100 div ?CACHE_SIZE_JITTER),
|
||||
CacheSize = proplists:get_value(cache_size, Opts)
|
||||
CacheJitter =
|
||||
proplists:get_value(cache_size, Opts)
|
||||
div (100 div ?CACHE_SIZE_JITTER),
|
||||
CacheSize =
|
||||
proplists:get_value(cache_size, Opts)
|
||||
+ erlang:phash2(self()) rem CacheJitter,
|
||||
RecentAAE =
|
||||
case proplists:get_value(recent_aae, Opts) of
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue