aboutsummaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorAlexander Moisseev <moiseev@mezonplus.ru>2016-12-07 19:40:53 +0300
committerAlexander Moisseev <moiseev@mezonplus.ru>2016-12-07 19:40:53 +0300
commite53908532ab8a6ba470393d171fe0ee41ee6aaaf (patch)
treee20a45ef5a2854e2930e5da0035a1228e2556717 /utils
parentbbd555dd9cfdcb9a3a02fe6129f81ed990558de7 (diff)
downloadrspamd-e53908532ab8a6ba470393d171fe0ee41ee6aaaf.tar.gz
rspamd-e53908532ab8a6ba470393d171fe0ee41ee6aaaf.zip
[Minor] rspamd_stats: fix parsing of lines with `NaN` score
Diffstat (limited to 'utils')
-rw-r--r--utils/rspamd_stats.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/rspamd_stats.pl b/utils/rspamd_stats.pl
index 1e8e7a158..e1618d14d 100644
--- a/utils/rspamd_stats.pl
+++ b/utils/rspamd_stats.pl
@@ -192,7 +192,7 @@ sub ProcessLog {
if (/^.*rspamd_task_write_log.*$/) {
$timeStamp{'end'} = join ' ', ( split /\s+/ )[ 0 .. 1 ];
- if ($_ !~ /\[(-?\d+(?:\.\d+)?)\/(-?\d+(?:\.\d+)?)\]\s+\[([^\]]+)\].+? time: (\d+\.\d+)ms real/) {
+ if ($_ !~ /\[(NaN|-?\d+(?:\.\d+)?)\/(-?\d+(?:\.\d+)?)\]\s+\[([^\]]+)\].+? time: (\d+\.\d+)ms real/) {
#print "BAD: $_\n";
next;
}