diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-04 17:26:51 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-04 17:26:51 +0100 |
commit | 80b126284566e994aaae172c78345c408866ad2e (patch) | |
tree | 606e0762092f82ef053a701075e1292ad9609b95 /src/libserver/task.h | |
parent | f4232b3a9fb8dcaad06807ff49749e41bdb9d6a2 (diff) | |
download | rspamd-80b126284566e994aaae172c78345c408866ad2e.tar.gz rspamd-80b126284566e994aaae172c78345c408866ad2e.zip |
Adopt task object for new timers architecture.
Diffstat (limited to 'src/libserver/task.h')
-rw-r--r-- | src/libserver/task.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libserver/task.h b/src/libserver/task.h index 204ea4cad..606e4dcea 100644 --- a/src/libserver/task.h +++ b/src/libserver/task.h @@ -138,10 +138,9 @@ struct rspamd_task { gchar *last_error; /**< last error */ gint error_code; /**< code of last error */ rspamd_mempool_t *task_pool; /**< memory pool for task */ -#ifdef HAVE_CLOCK_GETTIME - struct timespec ts; /**< time of connection */ -#endif - struct timeval tv; /**< time of connection */ + double time_real; + double time_virtual; + struct timeval tv; guint32 scan_milliseconds; /**< how much milliseconds passed */ guint32 parser_recursion; /**< for avoiding recursion stack overflow */ gboolean (*fin_callback)(struct rspamd_task *task, void *arg); /**< calback for filters finalizing */ |