aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2015-06-08 08:39:02 -0700
committerGerald Combs <gerald@wireshark.org>2015-06-08 16:05:11 +0000
commit845a832facf0bf17a16b8177cb3fd24736e109f1 (patch)
treec74ad5e3ef28a0c451f1e46adfbd9913d9c83a47 /plugins
parent69dac892803cdc555648c0a085ae2770942f0ae2 (diff)
Print "and greater" instead of a ten digit number.
Change-Id: I97dfabe3ec48acf57b33ec15486d2d660d610f6d Reviewed-on: https://code.wireshark.org/review/8841 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/stats_tree/pinfo_stats_tree.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/stats_tree/pinfo_stats_tree.c b/plugins/stats_tree/pinfo_stats_tree.c
index 42c461e296..6308f20650 100644
--- a/plugins/stats_tree/pinfo_stats_tree.c
+++ b/plugins/stats_tree/pinfo_stats_tree.c
@@ -176,9 +176,11 @@ static void plen_stats_tree_init(stats_tree *st) {
char **str_range_array = (char **)wmem_alloc(NULL, num_plen_uat*sizeof(char*));
/* Convert the ranges to strings for the stats tree API */
- for (i = 0; i < num_plen_uat; i++) {
+ for (i = 0; i < num_plen_uat - 1; i++) {
str_range_array[i] = range_convert_range(NULL, uat_plen_records[i].packet_range);
}
+ str_range_array[num_plen_uat - 1] = g_strdup_printf("%u and greater",
+ uat_plen_records[num_plen_uat - 1].packet_range->ranges[0].low);
st_node_plen = stats_tree_create_range_node_string(st, st_str_plen, 0, num_plen_uat, str_range_array);
for (i = 0; i < num_plen_uat; i++) {