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,9 +593,12 @@ init([Opts]) ->
|
||||||
% Start from file not snapshot
|
% Start from file not snapshot
|
||||||
{InkerOpts, PencillerOpts} = set_options(Opts),
|
{InkerOpts, PencillerOpts} = set_options(Opts),
|
||||||
|
|
||||||
CacheJitter = ?CACHE_SIZE div (100 div ?CACHE_SIZE_JITTER),
|
CacheJitter =
|
||||||
CacheSize = proplists:get_value(cache_size, Opts)
|
proplists:get_value(cache_size, Opts)
|
||||||
+ erlang:phash2(self()) rem CacheJitter,
|
div (100 div ?CACHE_SIZE_JITTER),
|
||||||
|
CacheSize =
|
||||||
|
proplists:get_value(cache_size, Opts)
|
||||||
|
+ erlang:phash2(self()) rem CacheJitter,
|
||||||
RecentAAE =
|
RecentAAE =
|
||||||
case proplists:get_value(recent_aae, Opts) of
|
case proplists:get_value(recent_aae, Opts) of
|
||||||
false ->
|
false ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue