Skip to content

Commit

Permalink
Die on negative 'nsigma_outliers'
Browse files Browse the repository at this point in the history
  • Loading branch information
tsee committed Dec 30, 2015
1 parent 861fbe7 commit 4e24a06
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Dumbbench/Stats.pm
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ sub filter_outliers {
if (not $n_sigma) {
return ($self->data, []);
}
elsif ($n_sigma < 0) {
Carp::croak("A negative value for the number of 'sigmas' makes no sense");
}

my $data = $self->data;

Expand Down

0 comments on commit 4e24a06

Please sign in to comment.