aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-11 14:30:49 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-10-11 14:30:49 +0100
commit80688502ddca0700df777f46a7a7a9ca055705ab (patch)
tree2e6f57eac6bfb53304878c76c523b6133f8c5f4c
parent77fd2c94d972b9b6b488397874e3491f707df456 (diff)
downloadrspamd-80688502ddca0700df777f46a7a7a9ca055705ab.tar.gz
rspamd-80688502ddca0700df777f46a7a7a9ca055705ab.zip
[Minor] Small fixes about fn/fp ambiguity
-rw-r--r--utils/classifier_test.pl4
1 files changed, 2 insertions, 2 deletions
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;
}