Only display the 3 digits of precision after the decimal that we have
authorsfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 24 Mar 2011 21:22:07 +0000 (21:22 +0000)
committersfisher <sfisher@f5534014-38df-0310-8fa8-9805f1628bb7>
Thu, 24 Mar 2011 21:22:07 +0000 (21:22 +0000)
from the ICMP conversation response time tracking.

git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@36316 f5534014-38df-0310-8fa8-9805f1628bb7

epan/dissectors/packet-icmp.c

index 1fa2bbe4102ca77bf4e0b018bb5bb435601560c7..3d78455adb1d54f8897ff6937c0c1887892adf0c 100644 (file)
@@ -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);
     }