summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Habets <thomas@habets.se>2014-05-28 09:34:04 +0100
committerThomas Habets <thomas@habets.se>2014-05-28 09:34:20 +0100
commitb9f9015a741c1979953b4c8f5f959f95232a8bfe (patch)
treeb213456ddd0716d26b1690e0cbb27fa2861279f7
parent248781747b6358d39c220f2b908eb940593bbe57 (diff)
downloadarping-b9f9015a741c1979953b4c8f5f959f95232a8bfe.tar.gz
Clarify that -A is used in test.
-rwxr-xr-xextra/testing.exp2
-rw-r--r--src/arping.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/extra/testing.exp b/extra/testing.exp
index f7d2a22..d4ffd75 100755
--- a/extra/testing.exp
+++ b/extra/testing.exp
@@ -33,7 +33,7 @@
#
# Not tested here:
# * -0
-# * -A
+# * -A (forced on with mac ping)
# * -b
# * -B
# * -d
diff --git a/src/arping.c b/src/arping.c
index 93f27c9..c0780ff 100644
--- a/src/arping.c
+++ b/src/arping.c
@@ -1487,7 +1487,7 @@ int main(int argc, char **argv)
count_missing_dots();
printf("\t%3.0f%% packet loss (%d extra)\n",
(succ < 0.0) ? 0.0 : succ,
- (succ < 0.0) ? (numrecvd - numsent): 0);
+ (succ < 0.0) ? (numrecvd - numsent) : 0);
} else if (display == NORMAL) {
const float succ = 100.0 - 100.0 * (float)(numrecvd)/(float)numsent;
printf("\n--- %s statistics ---\n"