aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-icmp.c
diff options
context:
space:
mode:
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-24 21:22:07 +0000
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>2011-03-24 21:22:07 +0000
commit634e143f1cc814ac53121670d35c49a2b0b29709 (patch)
treee09787d0d9769e957334d92ebe477250ff51443c /epan/dissectors/packet-icmp.c
parenta2127cdbc42247364c615a93421f7eb0a0000128 (diff)
Only display the 3 digits of precision after the decimal that we have
from the ICMP conversation response time tracking. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36316 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'epan/dissectors/packet-icmp.c')
-rw-r--r--epan/dissectors/packet-icmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/epan/dissectors/packet-icmp.c b/epan/dissectors/packet-icmp.c
index 1fa2bbe410..3d78455adb 100644
--- a/epan/dissectors/packet-icmp.c
+++ b/epan/dissectors/packet-icmp.c
@@ -795,7 +795,7 @@ static void transaction_end(packet_info *pinfo, proto_tree *tree, guint32 *key)
nstime_delta(&ns, &pinfo->fd->abs_ts, &icmp_trans->rqst_time);
resptime = 1000.0 * ns.secs + ns.nsecs/1000000.0;
it = proto_tree_add_double_format_value(tree, hf_icmp_resptime,
- NULL, 0, 0, resptime, "%f ms", resptime);
+ NULL, 0, 0, resptime, "%.3f ms", resptime);
PROTO_ITEM_SET_GENERATED(it);
}