forked from iputils/iputils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ping: add support for sub-second timeouts
Timeouts (-W) were previously silently rounded down to the next lower integral number. Subsecond values were rounded to zero which resulted in infinite timeouts, therefore ping never exited if there were no responses and timeouts below 1s. This commit fixes this issue. [Sami: I changed ping_strtod() to return double. Claudius did updated needed value by pointer reference, and had multiplication by 1000 in wrapper function. I think that made understanding the code unnecessarily difficult, so implementation was slightly changed.] Reviewed-by: Sami Kerola <kerolasa@iki.fi> Reference: iputils#122
- Loading branch information
Showing
1 changed file
with
48 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters