summaryrefslogtreecommitdiffstats
path: root/utils/received_parser_bench.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-15 17:08:43 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-06-15 17:08:43 +0100
commit03ff229b475f33081610ebff7e2256d2cac98a9d (patch)
tree2effbb08bac79d0fd94eb993dd8fca598e15f74a /utils/received_parser_bench.c
parent64f5a8946087eca07abab3356dfc8fa339cdd6b4 (diff)
downloadrspamd-03ff229b475f33081610ebff7e2256d2cac98a9d.tar.gz
rspamd-03ff229b475f33081610ebff7e2256d2cac98a9d.zip
[Feature] Further relax parser
Diffstat (limited to 'utils/received_parser_bench.c')
-rw-r--r--utils/received_parser_bench.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/received_parser_bench.c b/utils/received_parser_bench.c
index 4f6a073fd..cb304b631 100644
--- a/utils/received_parser_bench.c
+++ b/utils/received_parser_bench.c
@@ -75,7 +75,7 @@ rspamd_process_file (const gchar *fname)
total_known_proto ++;
}
- if (rh.by_hostname) {
+ if (rh.by_hostname || rh.timestamp > 0) {
total_valid ++;
}