Undefined typo

Interetsingly setting  max_pencillercachesize to a non-integer merely had the impact of making the penciller cache size infinite.

So a guard added to make sure it is an integer going forward.
This commit is contained in:
Martin Sumner 2018-06-07 14:53:34 +01:00
parent 11d72013d2
commit 319c6b4ca7
2 changed files with 2 additions and 2 deletions

View file

@ -100,7 +100,7 @@
{waste_retention_period, undefined}, {waste_retention_period, undefined},
{max_run_length, undefined}, {max_run_length, undefined},
{reload_strategy, []}, {reload_strategy, []},
{max_pencillercachesize, undefiend}, {max_pencillercachesize, undefined},
{compression_method, ?COMPRESSION_METHOD}, {compression_method, ?COMPRESSION_METHOD},
{compression_point, ?COMPRESSION_POINT}]). {compression_point, ?COMPRESSION_POINT}]).

View file

@ -971,7 +971,7 @@ start_from_file(PCLopts) ->
case PCLopts#penciller_options.max_inmemory_tablesize of case PCLopts#penciller_options.max_inmemory_tablesize of
undefined -> undefined ->
?MAX_TABLESIZE; ?MAX_TABLESIZE;
M -> M when is_integer(M) ->
M M
end, end,
PressMethod = PCLopts#penciller_options.compression_method, PressMethod = PCLopts#penciller_options.compression_method,