summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Majkowski <majek@lshift.net>2009-10-12 13:25:20 +0100
committerMarek Majkowski <majek@lshift.net>2009-10-12 13:25:20 +0100
commit9f0a43ea48b5d92efe771defa07dd26d3ce159a5 (patch)
treec23522a88f0e66fe31dea96759e2fd9342add791
parentfeb2611180c71fc71b51db73349c99de250d03f3 (diff)
downloadrabbitmq-server-9f0a43ea48b5d92efe771defa07dd26d3ce159a5.tar.gz
QA: erlang:trunc -> trunc
-rw-r--r--src/vm_memory_monitor.erl4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vm_memory_monitor.erl b/src/vm_memory_monitor.erl
index 5c97664b..b9320f5b 100644
--- a/src/vm_memory_monitor.erl
+++ b/src/vm_memory_monitor.erl
@@ -181,7 +181,7 @@ get_vm_limit() ->
get_mem_limit(MemFraction, TotalMemory) ->
- lists:min([erlang:trunc(TotalMemory * MemFraction),
+ lists:min([trunc(TotalMemory * MemFraction),
get_vm_limit()]).
init([MemFraction]) ->
@@ -195,7 +195,7 @@ init([MemFraction]) ->
end,
MemLimit = get_mem_limit(MemFraction, TotalMemory),
rabbit_log:info("Memory limit set to ~pMiB.~n",
- [erlang:trunc(MemLimit/1048576)]),
+ [trunc(MemLimit/1048576)]),
TRef = start_timer(?DEFAULT_MEMORY_CHECK_INTERVAL),
State = #state { total_memory = TotalMemory,
memory_limit = MemLimit,