summaryrefslogtreecommitdiffstats
path: root/sbin/ping/ping.c
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/ping/ping.c')
-rw-r--r--sbin/ping/ping.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/ping/ping.c b/sbin/ping/ping.c
index 256d704..3545c31 100644
--- a/sbin/ping/ping.c
+++ b/sbin/ping/ping.c
@@ -706,8 +706,8 @@ status()
double temp_min = nreceived ? tmin : 0;
(void)fprintf(stderr, "%ld/%ld packets received (%ld%%) "
"%.3f min / %.3f avg / %.3f max\n",
- nreceived, ntransmitted,
- (ntransmitted ?
+ nreceived, ntransmitted,
+ (ntransmitted ?
100 - (int) (((ntransmitted - nreceived) * 100)
/ ntransmitted)
: 0),
@@ -755,7 +755,7 @@ finish()
tcsetattr (0, TCSANOW, &ts);
}
- if (nreceived)
+ if (nreceived)
exit(0);
else
exit(2);
OpenPOWER on IntegriCloud