summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIngela Anderton Andin <ingela@erlang.org>2019-11-27 09:51:03 +0100
committerIngela Anderton Andin <ingela@erlang.org>2019-11-27 09:51:03 +0100
commitc20b8930fe119b3ed14ed21c203072ef04a75c87 (patch)
treea90bd09a0f8775ba08f4e1c30a4e46515a2f7f0e
parent659df4774fe8b88a8425cbdbf66f92a7d9af9810 (diff)
parent7b0e7ed3de924bcd73f309889a02765d53a3b814 (diff)
downloaderlang-c20b8930fe119b3ed14ed21c203072ef04a75c87.tar.gz
Merge branch 'ingela/inets/warnings' into maint
* ingela/inets/warnings: inets: Remove legacy code
-rw-r--r--lib/inets/examples/httpd_load_test/hdlt_random_html.erl16
1 files changed, 1 insertions, 15 deletions
diff --git a/lib/inets/examples/httpd_load_test/hdlt_random_html.erl b/lib/inets/examples/httpd_load_test/hdlt_random_html.erl
index 3b72d27f06..75b01fede0 100644
--- a/lib/inets/examples/httpd_load_test/hdlt_random_html.erl
+++ b/lib/inets/examples/httpd_load_test/hdlt_random_html.erl
@@ -23,10 +23,6 @@
-export([page/3]).
page(SessionID, _Env, Input) ->
-%% log("page(~p) -> deliver content-type when"
-%% "~n SessionID: ~p"
-%% "~n Env: ~p"
-%% "~n Input: ~p", [self(), SessionID, Env, Input]),
[WorkSimStr, SzSimStr] = string:tokens(Input, [$:]),
WorkSim = list_to_integer(WorkSimStr),
SzSim = list_to_integer(SzSimStr),
@@ -49,15 +45,5 @@ stop() ->
".
content(WorkSim, SzSim) ->
- {A, B, C} = {erlang:phash2([node()]),
- inets_time_compat:monotonic_time(),
- inets_time_compat:unique_integer()},
-
- random:seed(A, B, C),
- lists:sort([random:uniform(X) || X <- lists:seq(1, WorkSim)]),
+ lists:sort([rand:uniform(X) || X <- lists:seq(1, WorkSim)]),
lists:flatten(lists:duplicate(SzSim, "Dummy data ")).
-
-%% log(F, A) ->
-%% hdlt_logger:set_name("HDLT RANDOM-HTML"),
-%% hdlt_logger:set_level(debug),
-%% hdlt_logger:log(F, A).