From 00c670b84935624f89371ec97e960b0479946c0b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 8 Jul 2016 17:42:40 +0100 Subject: [PATCH] [Fix] Fix scores detection --- utils/rspamd_stats.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/rspamd_stats.pl b/utils/rspamd_stats.pl index d4223a7db..d5336f43d 100644 --- a/utils/rspamd_stats.pl +++ b/utils/rspamd_stats.pl @@ -75,11 +75,11 @@ while(<$rspamd_log>) { if (scalar(@selected) > 0) { foreach my $sym (@selected) { - $sym =~ /^([^\(]+)(?:\(([^\)]+)\))?.*$/; + $sym =~ /^([^\(]+)(\(([^\)]+)\))?/; my $sym_name = $1; my $sym_score = 0; if ($2) { - my $sym_score = $2 * 1.0; + $sym_score = $3 * 1.0; if (abs($sym_score) < $diff_alpha) { next; -- 2.39.5