aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/distribution_SUITE.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2016-03-08 08:55:13 +0100
committerDan Gudmundsson <[email protected]>2016-03-08 08:55:13 +0100
commit2a44ac37f487001b551c0103ed0b4c5ab4579ff1 (patch)
tree63f8acc7ac2a48190d5e9f6ed3f0afbf86f480d6 /erts/emulator/test/distribution_SUITE.erl
parent184bc747089398d7fd74aef9bce48b42e8e71464 (diff)
parent3f9e87c76d4d5ec4daa9cff108e9c30346159a65 (diff)
downloadotp-2a44ac37f487001b551c0103ed0b4c5ab4579ff1.tar.gz
otp-2a44ac37f487001b551c0103ed0b4c5ab4579ff1.tar.bz2
otp-2a44ac37f487001b551c0103ed0b4c5ab4579ff1.zip
Merge branch 'dgud/test-cuddle' into maint
* dgud/test-cuddle: Test windows registry in places we are allowed to write 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),