From 9392f08642c8b74dc4fc9d32a6959174dfb673eb Mon Sep 17 00:00:00 2001 From: Dan Gudmundsson Date: Fri, 5 Jan 2018 16:56:39 +0100 Subject: observer: Fix change accum Wrong data types was stored in the accum list. --- lib/observer/src/observer_pro_wx.erl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/observer') 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}}) -> -- cgit v1.2.3