diff options
author | Niko Tyni <ntyni@iki.fi> | 2005-09-26 21:18:43 +0200 |
---|---|---|
committer | Niko Tyni <ntyni@iki.fi> | 2005-09-26 21:18:43 +0200 |
commit | 1d1ad79d657c4706933332cc17af5f15df0353a0 (patch) | |
tree | 0ce8cd09b75d9cfe11a69dace4e4f09f55952582 /lib/Smokeping | |
parent | bf49085b6ef259192f6b012ad1d83e5c4cb7edd0 (diff) | |
download | smokeping-1d1ad79d657c4706933332cc17af5f15df0353a0.tar.gz smokeping-1d1ad79d657c4706933332cc17af5f15df0353a0.tar.xz |
* (trunk,2.0)/
lib/Smokeping/probes/FPing.pm,
CHANGES:
+ fix fping output parsing regexp so it doesn't report
100% loss when the first ping is lost
Diffstat (limited to 'lib/Smokeping')
-rw-r--r-- | lib/Smokeping/probes/FPing.pm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Smokeping/probes/FPing.pm b/lib/Smokeping/probes/FPing.pm index 1b44c51..e7d2a4c 100644 --- a/lib/Smokeping/probes/FPing.pm +++ b/lib/Smokeping/probes/FPing.pm @@ -117,7 +117,8 @@ sub ping ($){ $self->{rtts}={}; while (<$errh>){ chomp; - next unless /^\S+\s+:\s+[\d\.]/; #filter out error messages from fping + $self->do_debug("Got fping output: '$_'"); + next unless /^\S+\s+:\s+[-\d\.]/; #filter out error messages from fping my @times = split /\s+/; my $ip = shift @times; next unless ':' eq shift @times; #drop the colon |