diff options
author | Thomas Habets <thomas@habets.se> | 2014-05-28 09:34:04 +0100 |
---|---|---|
committer | Thomas Habets <thomas@habets.se> | 2014-05-28 09:34:20 +0100 |
commit | b9f9015a741c1979953b4c8f5f959f95232a8bfe (patch) | |
tree | b213456ddd0716d26b1690e0cbb27fa2861279f7 | |
parent | 248781747b6358d39c220f2b908eb940593bbe57 (diff) | |
download | arping-b9f9015a741c1979953b4c8f5f959f95232a8bfe.tar.gz |
Clarify that -A is used in test.
-rwxr-xr-x | extra/testing.exp | 2 | ||||
-rw-r--r-- | src/arping.c | 2 |
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" |