diff options
author | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-12-07 19:40:53 +0300 |
---|---|---|
committer | Alexander Moisseev <moiseev@mezonplus.ru> | 2016-12-07 19:40:53 +0300 |
commit | e53908532ab8a6ba470393d171fe0ee41ee6aaaf (patch) | |
tree | e20a45ef5a2854e2930e5da0035a1228e2556717 /utils | |
parent | bbd555dd9cfdcb9a3a02fe6129f81ed990558de7 (diff) | |
download | rspamd-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.pl | 2 |
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; } |