diff options
Diffstat (limited to 'sbin')
-rw-r--r-- | sbin/ping6/ping6.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ping6/ping6.c b/sbin/ping6/ping6.c index 63ec0fdf8be..2528ed2d18c 100644 --- a/sbin/ping6/ping6.c +++ b/sbin/ping6/ping6.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ping6.c,v 1.55 2003/06/11 06:22:15 deraadt Exp $ */ +/* $OpenBSD: ping6.c,v 1.56 2003/07/25 06:01:42 itojun Exp $ */ /* $KAME: ping6.c,v 1.163 2002/10/25 02:19:06 itojun Exp $ */ /* @@ -2182,8 +2182,8 @@ summary(void) if (nreceived > ntransmitted) (void)printf("-- somebody's duplicating packets!"); else - (void)printf("%d%% packet loss", - (int) (((ntransmitted - nreceived) * 100) / + (void)printf("%.1lf%% packet loss", + ((((double)ntransmitted - nreceived) * 100) / ntransmitted)); } (void)putchar('\n'); |