Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sbin/ping print summary stats.
details: https://anonhg.NetBSD.org/src/rev/114e136eff33
branches: trunk
changeset: 769481:114e136eff33
user: christos <christos%NetBSD.org@localhost>
date: Sun Sep 11 17:18:52 2011 +0000
description:
print summary stats.
diffstat:
sbin/ping/ping.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 963dbefddebf -r 114e136eff33 sbin/ping/ping.c
--- a/sbin/ping/ping.c Sun Sep 11 17:11:03 2011 +0000
+++ b/sbin/ping/ping.c Sun Sep 11 17:18:52 2011 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index