Przeglądaj źródła

Rename varibles

terry-xiaoyu 6 lat temu
rodzic
commit
7b356e80f4
1 zmienionych plików z 10 dodań i 10 usunięć
  1. 10 10
      priv/emqx.schema

+ 10 - 10
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