diff options
author | Tobi Oetiker <tobi@oetiker.ch> | 2008-06-08 23:37:10 +0200 |
---|---|---|
committer | Tobi Oetiker <tobi@oetiker.ch> | 2008-06-08 23:37:10 +0200 |
commit | 400065442d62705a6cebcf6f5c5aa53a3bccf34f (patch) | |
tree | d1b4b6f36cff2c253964a6c607e8ab1eab2660e6 /lib/Smokeping | |
parent | 9a6c0d09fb7ac906607f5fd2f4ec18d126ee5b72 (diff) | |
download | smokeping-400065442d62705a6cebcf6f5c5aa53a3bccf34f.tar.gz smokeping-400065442d62705a6cebcf6f5c5aa53a3bccf34f.tar.xz |
fixed regression from r680 which broken old fping detection
Diffstat (limited to 'lib/Smokeping')
-rw-r--r-- | lib/Smokeping/probes/FPing.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Smokeping/probes/FPing.pm b/lib/Smokeping/probes/FPing.pm index 331fabf..133996c 100644 --- a/lib/Smokeping/probes/FPing.pm +++ b/lib/Smokeping/probes/FPing.pm @@ -66,9 +66,9 @@ sub new($$$) if $return =~ m/only.+root/; if ($return =~ m/bytes, ([0-9.]+)\sms\s+.*\n.*\n.*:\s+([0-9.]+)/ and $1 > 0){ - $self->{pingfactor} = 1000 * $1/$2; + $self->{pingfactor} = 1000 * $2/$1; if ($1 != $2){ - warn "### fping seems to report in ", $1/$2, " milliseconds (old version?)"; + warn "### fping seems to report in ", $2/$1, " milliseconds (old version?)"; } } else { $self->{pingfactor} = 1000; # Gives us a good-guess default |