From: Vsevolod Stakhov Date: Fri, 8 Jul 2016 16:42:40 +0000 (+0100) Subject: [Fix] Fix scores detection X-Git-Tag: 1.3.0~131 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=00c670b84935624f89371ec97e960b0479946c0b;p=rspamd.git [Fix] Fix scores detection --- 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;