diff options
author | Siri Hansen <[email protected]> | 2016-12-20 09:42:01 +0100 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2016-12-20 09:42:01 +0100 |
commit | a4350201d204d61ee67b7330200c8d7d6d4b38d5 (patch) | |
tree | 5c0e1f289438b3d2ff934d98add3d40979f6426d /lib/observer/src/observer_pro_wx.erl | |
parent | f8bc348d6a717e84709eaebf8ebd882f41052c24 (diff) | |
parent | f0152387b96dc0c2ce5ecf7805fc435cb400356e (diff) | |
download | otp-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.erl | 8 |
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 -> |