summaryrefslogtreecommitdiff
path: root/print-igmp.c
diff options
context:
space:
mode:
authorXin LI <delphij@FreeBSD.org>2012-10-04 22:40:22 +0000
committerXin LI <delphij@FreeBSD.org>2012-10-04 22:40:22 +0000
commit0de8253a2f7ef0628846edb4fdcceb9ccab12d7a (patch)
treec9eca0fdb327e86bea07fe747313f828731215ca /print-igmp.c
parent60894fde29002aac35c5aff244b0f45c4d590413 (diff)
Diffstat (limited to 'print-igmp.c')
-rw-r--r--print-igmp.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/print-igmp.c b/print-igmp.c
index 6522bc3044d04..4087ee0980205 100644
--- a/print-igmp.c
+++ b/print-igmp.c
@@ -227,7 +227,11 @@ print_igmpv3_query(register const u_char *bp, register u_int len)
}
if (mrc != 100) {
(void)printf(" [max resp time ");
- relts_print(mrt);
+ if (mrt < 600) {
+ (void)printf("%.1fs", mrt * 0.1);
+ } else {
+ relts_print(mrt / 10);
+ }
(void)printf("]");
}
TCHECK2(bp[4], 4);