diff options
-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; |