Rename varibles
This commit is contained in:
parent
a1eb7ca7d2
commit
7b356e80f4
|
@ -900,22 +900,22 @@ end}.
|
||||||
end,
|
end,
|
||||||
{force_gc_policy, GcPolicy};
|
{force_gc_policy, GcPolicy};
|
||||||
("force_shutdown_policy", "default") ->
|
("force_shutdown_policy", "default") ->
|
||||||
{DefaultLen, DefaultSiz} =
|
{DefaultLen, DefaultSize} =
|
||||||
case erlang:system_info(wordsize) of
|
case erlang:system_info(wordsize) of
|
||||||
8 -> % arch_64
|
8 -> % arch_64
|
||||||
{8000, cuttlefish_bytesize:parse("800MB")};
|
{8000, cuttlefish_bytesize:parse("800MB")};
|
||||||
4 -> % arch_32
|
4 -> % arch_32
|
||||||
{1000, cuttlefish_bytesize:parse("100MB")}
|
{1000, cuttlefish_bytesize:parse("100MB")}
|
||||||
end,
|
end,
|
||||||
{force_shutdown_policy, #{message_queue_len => DefaultLen,
|
{force_shutdown_policy, #{message_queue_len => DefaultLen,
|
||||||
max_heap_size => DefaultSiz}};
|
max_heap_size => DefaultSize}};
|
||||||
("force_shutdown_policy", Val) ->
|
("force_shutdown_policy", Val) ->
|
||||||
[Len, Siz] = string:tokens(Val, "| "),
|
[Len, Siz] = string:tokens(Val, "| "),
|
||||||
MaxSiz = case erlang:system_info(wordsize) of
|
MaxSiz = case erlang:system_info(wordsize) of
|
||||||
8 -> % arch_64
|
8 -> % arch_64
|
||||||
(1 bsl 59) - 1;
|
(1 bsl 59) - 1;
|
||||||
4 -> % arch_32
|
4 -> % arch_32
|
||||||
(1 bsl 27) - 1
|
(1 bsl 27) - 1
|
||||||
end,
|
end,
|
||||||
ShutdownPolicy =
|
ShutdownPolicy =
|
||||||
case cuttlefish_bytesize:parse(Siz) of
|
case cuttlefish_bytesize:parse(Siz) of
|
||||||
|
|
Loading…
Reference in New Issue