From 8aa6b2ca02b6f08fd66178209317fa5ac658a88a Mon Sep 17 00:00:00 2001 From: Micael Karlberg Date: Thu, 7 Feb 2019 12:05:32 +0100 Subject: [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 --- erts/emulator/test/socket_test_ttest_lib.erl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'erts/emulator/test/socket_test_ttest_lib.erl') 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) -> -- cgit v1.2.3