aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2018-01-05 16:56:39 +0100
committerDan Gudmundsson <[email protected]>2018-01-11 14:53:16 +0100
commit9392f08642c8b74dc4fc9d32a6959174dfb673eb (patch)
tree6757f581feb58bd44670ef3ffe66023106266b4f /lib
parent57a1d2116327353f380acba5ba676b669d155649 (diff)
downloadotp-9392f08642c8b74dc4fc9d32a6959174dfb673eb.tar.gz
otp-9392f08642c8b74dc4fc9d32a6959174dfb673eb.tar.bz2
otp-9392f08642c8b74dc4fc9d32a6959174dfb673eb.zip
observer: Fix change accum
Wrong data types was stored in the accum list.
Diffstat (limited to 'lib')
-rw-r--r--lib/observer/src/observer_pro_wx.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/observer/src/observer_pro_wx.erl b/lib/observer/src/observer_pro_wx.erl
index 2e5fe0bc1a..7fe1ecbbad 100644
--- a/lib/observer/src/observer_pro_wx.erl
+++ b/lib/observer/src/observer_pro_wx.erl
@@ -572,7 +572,8 @@ change_accum(true, S0) ->
S0#holder{accum=true};
change_accum(false, S0=#holder{info=Info}) ->
self() ! refresh,
- S0#holder{accum=lists:sort(array:to_list(Info))}.
+ Accum = [{Pid, Reds} || #etop_proc_info{pid=Pid, reds=Reds} <- array:to_list(Info)],
+ S0#holder{accum=lists:sort(Accum)}.
handle_update_old(#etop_info{procinfo=ProcInfo0},
S0=#holder{parent=Parent, sort=Sort=#sort{sort_key=KeyField}}) ->