aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/test/socket_test_ttest_lib.erl
diff options
context:
space:
mode:
authorMicael Karlberg <[email protected]>2019-02-07 12:05:32 +0100
committerMicael Karlberg <[email protected]>2019-02-22 19:45:52 +0100
commit8aa6b2ca02b6f08fd66178209317fa5ac658a88a (patch)
tree41e4ff9b2d944e630e12ca680fb6208b25ede50e /erts/emulator/test/socket_test_ttest_lib.erl
parente4156fe240367b4ccad36277ff05d97ac0cb2a32 (diff)
downloadotp-8aa6b2ca02b6f08fd66178209317fa5ac658a88a.tar.gz
otp-8aa6b2ca02b6f08fd66178209317fa5ac658a88a.tar.bz2
otp-8aa6b2ca02b6f08fd66178209317fa5ac658a88a.zip
[socket|test] Some improvements to (esock) ttest
Add a quiet mode for ttest which is used when running in a (terminal) shell. Moved the esock-ttest script(s) into their own directory. Minor improvements to the (client) result printout. Also fixed copyright (end) dates. OTP-14831
Diffstat (limited to 'erts/emulator/test/socket_test_ttest_lib.erl')
-rw-r--r--erts/emulator/test/socket_test_ttest_lib.erl4
1 files changed, 3 insertions, 1 deletions
diff --git a/erts/emulator/test/socket_test_ttest_lib.erl b/erts/emulator/test/socket_test_ttest_lib.erl
index 71679bc6d6..7fc13df46a 100644
--- a/erts/emulator/test/socket_test_ttest_lib.erl
+++ b/erts/emulator/test/socket_test_ttest_lib.erl
@@ -56,8 +56,10 @@ format_timestamp({_N1, _N2, N3} = TS) ->
%% Time is always in number os ms (milli seconds)
%% At some point, we should convert this to a more readable format...
+format_time(T) when (T < 1000) ->
+ format("~w ms", [T]);
format_time(T) ->
- format("~p", [T]).
+ format("~w sec (~w ms)", [T div 1000, T]).
formated_process_stats(Pid) ->