diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-15 09:26:38 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-06-15 09:26:38 +0100 |
commit | e3866554181f3afc44afcd3cbd24fc2d4aac7f2d (patch) | |
tree | 176b4fcee18df095e3d5445b29aa4b064780c523 /utils | |
parent | 9aad3e020ba34916fd680fc157923d5d6906e1a2 (diff) | |
download | rspamd-e3866554181f3afc44afcd3cbd24fc2d4aac7f2d.tar.gz rspamd-e3866554181f3afc44afcd3cbd24fc2d4aac7f2d.zip |
[Fix] Fix parser
Diffstat (limited to 'utils')
-rw-r--r-- | utils/received_parser_bench.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/utils/received_parser_bench.c b/utils/received_parser_bench.c index 18c48ee10..4f6a073fd 100644 --- a/utils/received_parser_bench.c +++ b/utils/received_parser_bench.c @@ -25,6 +25,7 @@ static gint total_valid = 0; static gint total_real_ip = 0; static gint total_real_host = 0; static gint total_known_proto = 0; +static gint total_known_ts = 0; static void rspamd_process_file (const gchar *fname) @@ -77,6 +78,10 @@ rspamd_process_file (const gchar *fname) if (rh.by_hostname) { total_valid ++; } + + if (rh.timestamp != 0) { + total_known_ts ++; + } } if (err) { @@ -105,9 +110,12 @@ main (int argc, char **argv) "Total valid (has by part): %d\n" "Total real ip: %d\n" "Total real host: %d\n" - "Total known proto: %d\n", + "Total known proto: %d\n" + "Total known timestamp: %d\n", total_parsed, total_time, - total_valid, total_real_ip, total_real_host, total_known_proto); + total_valid, total_real_ip, + total_real_host, total_known_proto, + total_known_ts); return 0; } |