Module Name:    src
Committed By:   christos
Date:           Sun Sep 11 17:18:52 UTC 2011

Modified Files:
        src/sbin/ping: ping.c

Log Message:
print summary stats.


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/sbin/ping/ping.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sbin/ping/ping.c
diff -u src/sbin/ping/ping.c:1.100 src/sbin/ping/ping.c:1.101
--- src/sbin/ping/ping.c:1.100	Sat Sep 10 16:46:43 2011
+++ src/sbin/ping/ping.c	Sun Sep 11 13:18:52 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ping.c,v 1.100 2011/09/10 20:46:43 wiz Exp $	*/
+/*	$NetBSD: ping.c,v 1.101 2011/09/11 17:18:52 christos Exp $	*/
 
 /*
  * Copyright (c) 1989, 1993
@@ -58,7 +58,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: ping.c,v 1.100 2011/09/10 20:46:43 wiz Exp $");
+__RCSID("$NetBSD: ping.c,v 1.101 2011/09/11 17:18:52 christos Exp $");
 #endif
 
 #include <stdio.h>
@@ -1335,7 +1335,7 @@
 					    ntransmitted));
 	}
 	(void)printf("\n");
-	if (nreceived && (pingflags & F_TIMING)) {
+	if (nreceived && (pingflags & (F_TIMING|F_TIMING64))) {
 		double n = nreceived + nrepeats;
 		double avg = (tsum / n);
 		double variance = 0.0;

Reply via email to