From e19f2fb347fb29ce37be6acf1d4e6b5d64f4b84a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn-Egil=20Dahlberg?= Date: Thu, 8 Mar 2012 09:59:28 +0100 Subject: doc: Change variable name to 'A' to reflect Active --- erts/doc/src/erlang.xml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/erts/doc/src/erlang.xml b/erts/doc/src/erlang.xml index 441feaf76e..922d20bb82 100644 --- a/erts/doc/src/erlang.xml +++ b/erts/doc/src/erlang.xml @@ -4969,7 +4969,8 @@ ok
 > Ts1 = lists:sort(erlang:statistics(scheduler_wall_time)), ok.
 ok
-> lists:map(fun({{I, W0, T0}, {I, W1, T1}}) -> {I, (W1 - W0)/(T1 - T0)} end, lists:zip(Ts0,Ts1)).
+> lists:map(fun({{I, A0, T0}, {I, A1, T1}}) ->
+	{I, (A1 - A0)/(T1 - T0)} end, lists:zip(Ts0,Ts1)).
 [{1,0.9743474730177548},
  {2,0.9744843782751444},
  {3,0.9995902361669045},
@@ -4981,8 +4982,8 @@ ok
 

Using the same snapshot to calculate a total scheduler-utilization.

-> {W, T} = lists:foldl(fun({{_, W0, T0}, {_, W1, T1}}, {Wi,Ti}) -> 
-	{Wi + (W1 - W0), Ti + (T1 - T0)} end, {0,0}, lists:zip(Ts0,Ts1)), W/T.
+> {A, T} = lists:foldl(fun({{_, A0, T0}, {_, A1, T1}}, {Ai,Ti}) ->
+	{Ai + (A1 - A0), Ti + (T1 - T0)} end, {0, 0}, lists:zip(Ts0,Ts1)), A/T.
 0.9769136803764825
 
-- cgit v1.2.3