diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-08 17:42:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-07-08 17:42:40 +0100 |
commit | 00c670b84935624f89371ec97e960b0479946c0b (patch) | |
tree | af0e4e666a6b2c70a6983f6a34fc898ca1f3316f | |
parent | ab37087c4efa784688fbb5055655de4e2a938a5c (diff) | |
download | rspamd-00c670b84935624f89371ec97e960b0479946c0b.tar.gz rspamd-00c670b84935624f89371ec97e960b0479946c0b.zip |
[Fix] Fix scores detection
-rw-r--r-- | utils/rspamd_stats.pl | 4 |
1 files 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; |