diff options
author | Ingela Anderton Andin <[email protected]> | 2019-07-26 14:49:57 +0200 |
---|---|---|
committer | Ingela Anderton Andin <[email protected]> | 2019-07-26 14:49:57 +0200 |
commit | ecf71a31ae45f1ec5ca2d266040a6aa40e3455d7 (patch) | |
tree | 43065a42877f08c048d7e39dfe5d6303ddea7848 /lib/ssl/test/ssl_bench_SUITE.erl | |
parent | 2dd27227836fbf0b4eb5fe97aaa5cdb8d81793fc (diff) | |
parent | 7ac38b4a99e74f2bc6c8843bf11eece318010738 (diff) | |
download | otp-ecf71a31ae45f1ec5ca2d266040a6aa40e3455d7.tar.gz otp-ecf71a31ae45f1ec5ca2d266040a6aa40e3455d7.tar.bz2 otp-ecf71a31ae45f1ec5ca2d266040a6aa40e3455d7.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/ssl/test/ssl_bench_SUITE.erl')
-rw-r--r-- | lib/ssl/test/ssl_bench_SUITE.erl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/ssl/test/ssl_bench_SUITE.erl b/lib/ssl/test/ssl_bench_SUITE.erl index 35efa2b8a3..a297539c36 100644 --- a/lib/ssl/test/ssl_bench_SUITE.erl +++ b/lib/ssl/test/ssl_bench_SUITE.erl @@ -174,7 +174,12 @@ do_test(Type, TC, Loop, ParallellConnections, Server) -> end, {TimeInMicro, _} = timer:tc(Run), TotalTests = ParallellConnections * Loop, - TestPerSecond = 1000000 * TotalTests div TimeInMicro, + TestPerSecond = case TimeInMicro of + 0 -> + undefined; + _ -> + 1000000 * TotalTests div TimeInMicro + end, io:format("TC ~p ~p ~p ~p 1/s~n", [TC, Type, ParallellConnections, TestPerSecond]), unlink(SPid), SPid ! quit, |