summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTobi Oetiker <tobi@oetiker.ch>2007-03-11 13:40:13 +0100
committerTobi Oetiker <tobi@oetiker.ch>2007-03-11 13:40:13 +0100
commite940342e10e11fdc8142e18bc64f31494c1268d3 (patch)
treedebe535bd3f8cc13517fd92c9071fc799749b303 /lib
parentf791cc4b4470c90ac8b4fd2205a840d0f222513e (diff)
downloadsmokeping-e940342e10e11fdc8142e18bc64f31494c1268d3.tar.gz
smokeping-e940342e10e11fdc8142e18bc64f31494c1268d3.tar.xz
if max_rtt is set, use it! http://bugs.debian.org/412826
Diffstat (limited to 'lib')
-rw-r--r--lib/Smokeping.pm3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm
index 6721a1b..32c3130 100644
--- a/lib/Smokeping.pm
+++ b/lib/Smokeping.pm
@@ -686,8 +686,7 @@ sub findmax ($$) {
}
$maxmedian{$x} = $cfg->{Presentation}{detail}{max_rtt}
- if $cfg->{Presentation}{detail}{max_rtt} and
- $maxmedian{$x} > $cfg->{Presentation}{detail}{max_rtt}
+ if $cfg->{Presentation}{detail}{max_rtt}
};
return \%maxmedian;
}