diff options
author | John Thacker <johnthacker@gmail.com> | 2021-12-06 23:12:28 -0500 |
---|---|---|
committer | John Thacker <johnthacker@gmail.com> | 2021-12-06 23:15:55 -0500 |
commit | 06c1bbb2bed66c022a2411112c988f071b2bae9e (patch) | |
tree | 2b89aa1ff8bf8fb5150a66ae8170707a36639706 /epan/dissectors/asn1/gsm_map/packet-gsm_map-template.c | |
parent | 290234f3f5c9114952d80906503bddaec5ad539f (diff) |
gsm_map: stat table formatting in cli
The TABLE_ITEM_FLOATs (Avg Bytes, etc.) in the stat table need a float
format string, or else unpredictable output happens with tshark.
Diffstat (limited to 'epan/dissectors/asn1/gsm_map/packet-gsm_map-template.c')
-rw-r--r-- | epan/dissectors/asn1/gsm_map/packet-gsm_map-template.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/epan/dissectors/asn1/gsm_map/packet-gsm_map-template.c b/epan/dissectors/asn1/gsm_map/packet-gsm_map-template.c index 5202c91f9a..8d8ad4e171 100644 --- a/epan/dissectors/asn1/gsm_map/packet-gsm_map-template.c +++ b/epan/dissectors/asn1/gsm_map/packet-gsm_map-template.c @@ -2716,12 +2716,12 @@ static stat_tap_table_item gsm_map_stat_fields[] = { {TABLE_ITEM_STRING, TAP_ALIGN_LEFT, "Operation Code", "%-25s"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Invokes", "%d"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Num Bytes", "%d"}, - {TABLE_ITEM_FLOAT, TAP_ALIGN_RIGHT, "Avg Bytes", "%d"}, + {TABLE_ITEM_FLOAT, TAP_ALIGN_RIGHT, "Avg Bytes", "%1.2f"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Return Result", "%d"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Num Bytes", "%d"}, - {TABLE_ITEM_FLOAT, TAP_ALIGN_RIGHT, "Avg Bytes", "%d"}, + {TABLE_ITEM_FLOAT, TAP_ALIGN_RIGHT, "Avg Bytes", "%1.2f"}, {TABLE_ITEM_UINT, TAP_ALIGN_RIGHT, "Total Bytes", "%d"}, - {TABLE_ITEM_FLOAT, TAP_ALIGN_RIGHT, "Avg Bytes", "%d"}, + {TABLE_ITEM_FLOAT, TAP_ALIGN_RIGHT, "Avg Bytes", "%1.2f"}, }; static void gsm_map_stat_init(stat_tap_table_ui* new_stat) |