aboutsummaryrefslogtreecommitdiffstats
path: root/lib/observer/src/observer_pro_wx.erl
diff options
context:
space:
mode:
authorSiri Hansen <[email protected]>2016-12-20 09:42:01 +0100
committerSiri Hansen <[email protected]>2016-12-20 09:42:01 +0100
commita4350201d204d61ee67b7330200c8d7d6d4b38d5 (patch)
tree5c0e1f289438b3d2ff934d98add3d40979f6426d /lib/observer/src/observer_pro_wx.erl
parentf8bc348d6a717e84709eaebf8ebd882f41052c24 (diff)
parentf0152387b96dc0c2ce5ecf7805fc435cb400356e (diff)
downloadotp-a4350201d204d61ee67b7330200c8d7d6d4b38d5.tar.gz
otp-a4350201d204d61ee67b7330200c8d7d6d4b38d5.tar.bz2
otp-a4350201d204d61ee67b7330200c8d7d6d4b38d5.zip
Merge branch 'maint'
Diffstat (limited to 'lib/observer/src/observer_pro_wx.erl')
-rw-r--r--lib/observer/src/observer_pro_wx.erl8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/observer/src/observer_pro_wx.erl b/lib/observer/src/observer_pro_wx.erl
index ee6829b847..f07b9e295a 100644
--- a/lib/observer/src/observer_pro_wx.erl
+++ b/lib/observer/src/observer_pro_wx.erl
@@ -511,7 +511,13 @@ table_holder(#holder{info=Info, attrs=Attrs,
table_holder(S0);
{dump, Fd} ->
EtopInfo = (S0#holder.etop)#etop_info{procinfo=array:to_list(Info)},
- etop_txt:do_update(Fd, EtopInfo, #opts{node=Node}),
+ %% The empty #etop_info{} below is a dummy previous info
+ %% value. It is used by etop to calculate the scheduler
+ %% utilization since last update. When dumping to file,
+ %% there is no previous measurement to use, so we just add
+ %% a dummy here, and the value shown will be since the
+ %% tool was started.
+ etop_txt:do_update(Fd, EtopInfo, #etop_info{}, #opts{node=Node}),
file:close(Fd),
table_holder(S0);
stop ->