aboutsummaryrefslogtreecommitdiffstats
path: root/erts/doc/src/erlang.xml
diff options
context:
space:
mode:
authorBjörn-Egil Dahlberg <[email protected]>2012-03-08 09:59:28 +0100
committerBjörn-Egil Dahlberg <[email protected]>2012-03-08 09:59:28 +0100
commite19f2fb347fb29ce37be6acf1d4e6b5d64f4b84a (patch)
treee50979df95f571cb44379f8a710237748ff74295 /erts/doc/src/erlang.xml
parent8ed601a6f4f03ea6cdb82948e0c8aa06a14bd791 (diff)
downloadotp-e19f2fb347fb29ce37be6acf1d4e6b5d64f4b84a.tar.gz
otp-e19f2fb347fb29ce37be6acf1d4e6b5d64f4b84a.tar.bz2
otp-e19f2fb347fb29ce37be6acf1d4e6b5d64f4b84a.zip
doc: Change variable name to 'A' to reflect Active
Diffstat (limited to 'erts/doc/src/erlang.xml')
-rw-r--r--erts/doc/src/erlang.xml7
1 files 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
<pre>
> <input>Ts1 = lists:sort(erlang:statistics(scheduler_wall_time)), ok.</input>
ok
-> <input>lists:map(fun({{I, W0, T0}, {I, W1, T1}}) -> {I, (W1 - W0)/(T1 - T0)} end, lists:zip(Ts0,Ts1)).</input>
+> <input>lists:map(fun({{I, A0, T0}, {I, A1, T1}}) ->
+ {I, (A1 - A0)/(T1 - T0)} end, lists:zip(Ts0,Ts1)).</input>
[{1,0.9743474730177548},
{2,0.9744843782751444},
{3,0.9995902361669045},
@@ -4981,8 +4982,8 @@ ok
</pre>
<p>Using the same snapshot to calculate a total scheduler-utilization.</p>
<pre>
-> <input>{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.</input>
+> <input>{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.</input>
0.9769136803764825
</pre>