diff options
author | Siri Hansen <[email protected]> | 2017-09-07 17:34:58 +0200 |
---|---|---|
committer | Siri Hansen <[email protected]> | 2017-09-07 17:34:58 +0200 |
commit | 695ce64b3168c3fcc2d5f2de5cb74701f767e71d (patch) | |
tree | 153c3af70c221a063844e922d29c11ee9b82b64e /lib/observer/src/cdv_term_cb.erl | |
parent | f4c24c5faba8cbf0817b4dd9559e2ae2223525f0 (diff) | |
parent | b569db7fd80de6f6f049797fa7676bdfbe55cc4f (diff) | |
download | otp-695ce64b3168c3fcc2d5f2de5cb74701f767e71d.tar.gz otp-695ce64b3168c3fcc2d5f2de5cb74701f767e71d.tar.bz2 otp-695ce64b3168c3fcc2d5f2de5cb74701f767e71d.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/observer/src/cdv_term_cb.erl')
-rw-r--r-- | lib/observer/src/cdv_term_cb.erl | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/observer/src/cdv_term_cb.erl b/lib/observer/src/cdv_term_cb.erl index f0d90dde7c..f206d7e4c9 100644 --- a/lib/observer/src/cdv_term_cb.erl +++ b/lib/observer/src/cdv_term_cb.erl @@ -57,13 +57,7 @@ expand(['#CDVBin',Offset,Size,Pos], true) -> {ok,Bin} = crashdump_viewer:expand_binary({Offset,Size,Pos}), Bin; expand(Bin, Tab) when is_binary(Bin), not is_boolean(Tab) -> - Size = byte_size(Bin), - PrevSize = min(Size, 10) * 8, - <<Preview:PrevSize, _/binary>> = Bin, - Hash = erlang:phash2(Bin), - Key = {Preview, Size, Hash}, - ets:insert(Tab, {Key,Bin}), - ['#OBSBin',Preview,Size,Hash]; + observer_lib:make_obsbin(Bin, Tab); expand([H|T], Expand) -> case expand(T, Expand) of ET when is_list(ET) -> |