aboutsummaryrefslogtreecommitdiffstats
path: root/utils/rspamd_stats.pl
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-08 17:42:40 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-07-08 17:42:40 +0100
commit00c670b84935624f89371ec97e960b0479946c0b (patch)
treeaf0e4e666a6b2c70a6983f6a34fc898ca1f3316f /utils/rspamd_stats.pl
parentab37087c4efa784688fbb5055655de4e2a938a5c (diff)
downloadrspamd-00c670b84935624f89371ec97e960b0479946c0b.tar.gz
rspamd-00c670b84935624f89371ec97e960b0479946c0b.zip
[Fix] Fix scores detection
Diffstat (limited to 'utils/rspamd_stats.pl')
-rw-r--r--utils/rspamd_stats.pl4
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;