From e940342e10e11fdc8142e18bc64f31494c1268d3 Mon Sep 17 00:00:00 2001 From: Tobi Oetiker Date: Sun, 11 Mar 2007 12:40:13 +0000 Subject: if max_rtt is set, use it! http://bugs.debian.org/412826 --- lib/Smokeping.pm | 3 +-- 1 file changed, 1 insertion(+), 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; } -- cgit v1.2.3-24-g4f1b