From: Vsevolod Stakhov Date: Tue, 11 Oct 2016 13:30:49 +0000 (+0100) Subject: [Minor] Small fixes about fn/fp ambiguity X-Git-Tag: 1.4.0~282 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=80688502ddca0700df777f46a7a7a9ca055705ab;p=rspamd.git [Minor] Small fixes about fn/fp ambiguity --- diff --git a/utils/classifier_test.pl b/utils/classifier_test.pl index be46e9b00..2dbb4e903 100644 --- a/utils/classifier_test.pl +++ b/utils/classifier_test.pl @@ -431,7 +431,7 @@ sub cross_validate { shuffle_array( \@files_spam ); foreach my $fn (@files_spam) { - my $r = $check_func->( $fn, 1, \$fp_ham, \$fn_ham, \$detected_spam ); + my $r = $check_func->( $fn, 1, \$fp_ham, \$fn_spam, \$detected_spam ); $total_spam += $r; $processed += $r; } @@ -439,7 +439,7 @@ sub cross_validate { shuffle_array( \@files_ham ); foreach my $fn (@files_ham) { - my $r = $check_func->( $fn, 0, \$fp_spam, \$fn_spam, \$detected_ham ); + my $r = $check_func->( $fn, 0, \$fp_spam, \$fn_ham, \$detected_ham ); $total_ham += $r; $processed += $r; }