Browse Source

[Minor] rspamd_stats: fix parsing of lines with `NaN` score

tags/1.5.0
Alexander Moisseev 7 years ago
parent
commit
e53908532a
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      utils/rspamd_stats.pl

+ 1
- 1
utils/rspamd_stats.pl View File

@@ -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;
}

Loading…
Cancel
Save