summaryrefslogtreecommitdiffstats
path: root/lib/Smokeping/matchers
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Smokeping/matchers')
-rw-r--r--lib/Smokeping/matchers/Median.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Smokeping/matchers/Median.pm b/lib/Smokeping/matchers/Median.pm
index 35953dd..22a2445 100644
--- a/lib/Smokeping/matchers/Median.pm
+++ b/lib/Smokeping/matchers/Median.pm
@@ -85,7 +85,7 @@ sub Test($$)
my $ac = $self->{param}{old};
my $bc = $self->{param}{new};
my $cc = $ac +$bc;
- my $count = scalar @{$data->{rtt};
+ my $count = scalar @{$data->{rtt}};
$cc = $count if $count < $cc;
$bc = $count if $count < $bc;
my $oldm = robust_median(@{$data->{rtt}}[-$cc..-$bc-1]);