aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/cdv_mem_cb.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2017-07-06 17:25:37 +0200
committerSiri Hansen <[email protected]>2017-09-15 17:07:51 +0200
commitfb9235e7c3a6872a1394e5ba0c78217d9617f8e3 (patch)
tree758aa4ef26fac6475883450b4ccc599d23bcc08e /lib/observer/src/cdv_mem_cb.erl
parent09e2288b7a42345ea76e5e23ad93346c63efb06d (diff)
downloadotp-fb9235e7c3a6872a1394e5ba0c78217d9617f8e3.tar.gz
otp-fb9235e7c3a6872a1394e5ba0c78217d9617f8e3.tar.bz2
otp-fb9235e7c3a6872a1394e5ba0c78217d9617f8e3.zip
observer: Do not use deprecated functions in string(3)
Diffstat (limited to 'lib/observer/src/cdv_mem_cb.erl')
-rw-r--r--lib/observer/src/cdv_mem_cb.erl4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/observer/src/cdv_mem_cb.erl b/lib/observer/src/cdv_mem_cb.erl
index abeddc7335..925487786c 100644
--- a/lib/observer/src/cdv_mem_cb.erl
+++ b/lib/observer/src/cdv_mem_cb.erl
@@ -49,9 +49,7 @@ gen_mem_info_fields([]) ->
[].
upper(Key) ->
- string:join([string:to_upper([H]) ++ T ||
- [H|T] <- string:tokens(Key,"_")]," ").
-
+ lists:join(" ", [string:titlecase(Word) || Word <- string:split(Key, "_", all)]).
%%%-----------------------------------------------------------------
%%% Allocated areas page