aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/distribution_SUITE.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-03-03 13:37:03 +0100
committerDan Gudmundsson <[email protected]>2016-03-08 08:54:31 +0100
commit21f3a5c817d9a2a53670c8ac57c7ec5171bb25ed (patch)
tree81a4db68ca4ec77968ea909ec99f00fe29bccdc6 /erts/emulator/test/distribution_SUITE.erl
parent184bc747089398d7fd74aef9bce48b42e8e71464 (diff)
downloadotp-21f3a5c817d9a2a53670c8ac57c7ec5171bb25ed.tar.gz
otp-21f3a5c817d9a2a53670c8ac57c7ec5171bb25ed.tar.bz2
otp-21f3a5c817d9a2a53670c8ac57c7ec5171bb25ed.zip
test: do not divide by zero
Diffstat (limited to 'erts/emulator/test/distribution_SUITE.erl')
-rw-r--r--erts/emulator/test/distribution_SUITE.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/erts/emulator/test/distribution_SUITE.erl b/erts/emulator/test/distribution_SUITE.erl
index d71cedbdc5..151fab0a0e 100644
--- a/erts/emulator/test/distribution_SUITE.erl
+++ b/erts/emulator/test/distribution_SUITE.erl
@@ -164,7 +164,7 @@ bulk_send(Terms, BinSize) ->
?line stop_node(Node),
?line test_server:timetrap_cancel(Dog),
- {comment, integer_to_list(trunc(Size/1024/Elapsed+0.5)) ++ " K/s"}.
+ {comment, integer_to_list(trunc(Size/1024/max(1,Elapsed)+0.5)) ++ " K/s"}.
bulk_sendsend(Terms, BinSize) ->
{Rate1, MonitorCount1} = bulk_sendsend2(Terms, BinSize, 5),