From 7b356e80f46c06081adbbfa7162b7b0141aab91c Mon Sep 17 00:00:00 2001 From: terry-xiaoyu <506895667@qq.com> Date: Tue, 7 May 2019 15:54:50 +0800 Subject: [PATCH] Rename varibles --- priv/emqx.schema | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/priv/emqx.schema b/priv/emqx.schema index b2a7998c8..81f24884a 100644 --- a/priv/emqx.schema +++ b/priv/emqx.schema @@ -900,22 +900,22 @@ end}. end, {force_gc_policy, GcPolicy}; ("force_shutdown_policy", "default") -> - {DefaultLen, DefaultSiz} = + {DefaultLen, DefaultSize} = case erlang:system_info(wordsize) of - 8 -> % arch_64 - {8000, cuttlefish_bytesize:parse("800MB")}; - 4 -> % arch_32 - {1000, cuttlefish_bytesize:parse("100MB")} + 8 -> % arch_64 + {8000, cuttlefish_bytesize:parse("800MB")}; + 4 -> % arch_32 + {1000, cuttlefish_bytesize:parse("100MB")} end, {force_shutdown_policy, #{message_queue_len => DefaultLen, - max_heap_size => DefaultSiz}}; + max_heap_size => DefaultSize}}; ("force_shutdown_policy", Val) -> [Len, Siz] = string:tokens(Val, "| "), MaxSiz = case erlang:system_info(wordsize) of - 8 -> % arch_64 - (1 bsl 59) - 1; - 4 -> % arch_32 - (1 bsl 27) - 1 + 8 -> % arch_64 + (1 bsl 59) - 1; + 4 -> % arch_32 + (1 bsl 27) - 1 end, ShutdownPolicy = case cuttlefish_bytesize:parse(Siz) of