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 9df38d1
Show file tree
Hide file tree
Showing 6 changed files with 428 additions and 357 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@ fping 5.0 (unreleased)

## New features

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

## Bugfixes and other changes

- Fix build with --disable-ipv6 (#187, thanks Polynomial-C)
- 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 9df38d1

Please sign in to comment.