aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tools/src
diff options
context:
space:
mode:
authorJohn Högberg <[email protected]>2018-02-13 09:47:59 +0100
committerJohn Högberg <[email protected]>2018-02-13 09:47:59 +0100
commit9d660e81152fd7640e12551b09eebae1ebb87c98 (patch)
tree7b3506124f3144eefe5c59885be8c7bb18df436f /lib/tools/src
parent78baf69b8b37b543f419fcd5a606cba2c60abea0 (diff)
parentdfa4d62c263cd3f11338aba891179b08704d9287 (diff)
downloadotp-9d660e81152fd7640e12551b09eebae1ebb87c98.tar.gz
otp-9d660e81152fd7640e12551b09eebae1ebb87c98.tar.bz2
otp-9d660e81152fd7640e12551b09eebae1ebb87c98.zip
Merge branch 'john/tools/fix-lcnt-server-crash/PR-1711/OTP-14912' into maint
Diffstat (limited to 'lib/tools/src')
-rw-r--r--lib/tools/src/lcnt.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tools/src/lcnt.erl b/lib/tools/src/lcnt.erl
index 20b031a7ad..d0152a4915 100644
--- a/lib/tools/src/lcnt.erl
+++ b/lib/tools/src/lcnt.erl
@@ -944,7 +944,7 @@ print_state_information(#state{locks = Locks} = State) ->
print(kv("#tries", s(Stats#stats.tries))),
print(kv("#colls", s(Stats#stats.colls))),
print(kv("wait time", s(Stats#stats.time) ++ " us" ++ " ( " ++ s(Stats#stats.time/1000000) ++ " s)")),
- print(kv("percent of duration", s(Stats#stats.time/State#state.duration*100) ++ " %")),
+ print(kv("percent of duration", s(percent(Stats#stats.time, State#state.duration)) ++ " %")),
ok.