summaryrefslogtreecommitdiff
path: root/src/vm_memory_monitor.erl
diff options
context:
space:
mode:
authorMatthias Radestock <matthias@lshift.net>2009-11-25 17:02:54 +0000
committerMatthias Radestock <matthias@lshift.net>2009-11-25 17:02:54 +0000
commit0f3f58afbb65d767924e2e87c0a7eaa2ccb9b3dc (patch)
tree44e54ab75d8f96ea05e874f3783d55a07c1d2d15 /src/vm_memory_monitor.erl
parente4999fb7986dfa8afbbcdd19621469980940bea8 (diff)
downloadrabbitmq-server-0f3f58afbb65d767924e2e87c0a7eaa2ccb9b3dc.tar.gz
put things in (the right) order
Diffstat (limited to 'src/vm_memory_monitor.erl')
-rw-r--r--src/vm_memory_monitor.erl44
1 files changed, 22 insertions, 22 deletions
diff --git a/src/vm_memory_monitor.erl b/src/vm_memory_monitor.erl
index a71bb1be..2b88f4a3 100644
--- a/src/vm_memory_monitor.erl
+++ b/src/vm_memory_monitor.erl
@@ -85,6 +85,28 @@
%%----------------------------------------------------------------------------
+%% Public API
+%%----------------------------------------------------------------------------
+
+update() ->
+ gen_server:cast(?SERVER, update).
+
+get_total_memory() ->
+ get_total_memory(os:type()).
+
+get_check_interval() ->
+ gen_server:call(?MODULE, get_check_interval).
+
+set_check_interval(Fraction) ->
+ gen_server:call(?MODULE, {set_check_interval, Fraction}).
+
+get_vm_memory_high_watermark() ->
+ gen_server:call(?MODULE, get_vm_memory_high_watermark).
+
+set_vm_memory_high_watermark(Fraction) ->
+ gen_server:call(?MODULE, {set_vm_memory_high_watermark, Fraction}).
+
+%%----------------------------------------------------------------------------
%% gen_server callbacks
%%----------------------------------------------------------------------------
@@ -148,28 +170,6 @@ code_change(_OldVsn, State, _Extra) ->
{ok, State}.
%%----------------------------------------------------------------------------
-%% Public API
-%%----------------------------------------------------------------------------
-
-update() ->
- gen_server:cast(?SERVER, update).
-
-get_total_memory() ->
- get_total_memory(os:type()).
-
-get_check_interval() ->
- gen_server:call(?MODULE, get_check_interval).
-
-set_check_interval(Fraction) ->
- gen_server:call(?MODULE, {set_check_interval, Fraction}).
-
-get_vm_memory_high_watermark() ->
- gen_server:call(?MODULE, get_vm_memory_high_watermark).
-
-set_vm_memory_high_watermark(Fraction) ->
- gen_server:call(?MODULE, {set_vm_memory_high_watermark, Fraction}).
-
-%%----------------------------------------------------------------------------
%% Server Internals
%%----------------------------------------------------------------------------