Skip to content

Commit

Permalink
refactored event loop, now for each ping we create both a ping and a …
Browse files Browse the repository at this point in the history
…timeout event
  • Loading branch information
schweikert committed Jul 26, 2020
1 parent 6600b04 commit bb8d71e
Show file tree
Hide file tree
Showing 6 changed files with 431 additions and 356 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,19 @@ fping 5.0 (unreleased)

## New features

- Refactored event loop, now allowing for period (-p) to be smaller than
timeout (-t). The number of sent pings is now only incremented when the
response is received or when the timeout happens, so that the loss statistic
is always correct (especially important when using interval statistics (-Q)
(#193).
- Improved precision of measurements from 10us to 1us (#136, thanks @tycho)


fping 4.4 (2020-07-24)
======================
## Bugfixes and other changes

- Fix wrong ident used for normal (non-unprivileged) pings (#191, thanks @tycho)
- Fix build with --disable-ipv6 (#187, thanks Polynomial-C)

fping 4.3 (2020-07-11)
Expand Down
3 changes: 1 addition & 2 deletions ci/test-02-help.pl
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,7 @@
# fping -v
my $cmd2 = Test::Command->new(cmd => "fping -v");
$cmd2->exit_is_num(0);
$cmd2->stdout_like(qr{fping: Version \S+
fping: comments to david\@schweikert\.ch\n});
$cmd2->stdout_like(qr{fping: Version \S+});
$cmd2->stderr_is_eq("");

# fping with unknown option
Expand Down
4 changes: 1 addition & 3 deletions ci/test-10-option-u-x.pl
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@
{
my $cmd = Test::Command->new(cmd => "fping -v");
$cmd->exit_is_num(0);
$cmd->stdout_like(qr{ping: Version [45]\.\d+(-rc\d+)?
fping: comments to david\@schweikert\.ch
});
$cmd->stdout_like(qr{ping: Version [45]\.\d+(-rc\d+)?});
$cmd->stderr_is_eq("");
}

Expand Down
Loading

0 comments on commit bb8d71e

Please sign in to comment.