[PATCH] Prefer details in cdv_ets_cb:init_gen_page/2

Leo Liu <[email protected]> Fri, 09 Oct 2015 09:59:01 +0800
Newsgroups gmane.comp.lang.erlang.bugs
Message-ID <[email protected]>
Hi,

When viewing the details page of an ETS table in crashdump_viewer, it
always shows the `data structure' as `hash'. Could someone see if this
is an oversight and the following patch is intended? Thanks.

Leo

_______________________________________________
erlang-bugs mailing list
[email protected]
http://erlang.org/mailman/listinfo/erlang-bugs
0001-Prefer-details-in-cdv_ets_cb-init_gen_page-2.patch (text/x-patch, 929 B)
From ccccdcfdeefc0bc0ead8ec37e7c9ae2e6d81a41e Mon Sep 17 00:00:00 2001
From: Leo Liu <[email protected]>
Date: Fri, 9 Oct 2015 09:52:35 +0800
Subject: [PATCH] Prefer details in cdv_ets_cb:init_gen_page/2

For example details may have more specific data_type than "hash".
---
 lib/observer/src/cdv_ets_cb.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/observer/src/cdv_ets_cb.erl b/lib/observer/src/cdv_ets_cb.erl
index 9e6e72e0..4aa40056 100644
--- a/lib/observer/src/cdv_ets_cb.erl
+++ b/lib/observer/src/cdv_ets_cb.erl
@@ -86,7 +86,7 @@ detail_pages() ->
 init_gen_page(Parent, Info0) ->
     Fields = info_fields(),
     Details = proplists:get_value(details, Info0),
-    Info = if is_map(Details) -> Info0 ++ maps:to_list(Details);
+    Info = if is_map(Details) -> maps:to_list(Details) ++ Info0;
 	      true -> Info0
 	   end,
     cdv_info_wx:start_link(Parent,{Fields,Info,[]}).
-- 
2.6.0