diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-05 17:48:20 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-07-05 17:48:20 +0400 |
commit | 52e71f9ed43b0e0f7f030eb0f0b56a887978cf8a (patch) | |
tree | 9496a3ea6f3b95006554b003e01425e6b68b2765 /src/worker.c | |
parent | bae637bec8e9c23668cbacbb9f5a1bd829cae487 (diff) | |
download | rspamd-52e71f9ed43b0e0f7f030eb0f0b56a887978cf8a.tar.gz rspamd-52e71f9ed43b0e0f7f030eb0f0b56a887978cf8a.zip |
* Fix detection of numeric urls (reported by citrin)
* Write real time of message's scan to log (not only virtual)
Diffstat (limited to 'src/worker.c')
-rw-r--r-- | src/worker.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/worker.c b/src/worker.c index 13880bdfa..02077d5c9 100644 --- a/src/worker.c +++ b/src/worker.c @@ -430,11 +430,10 @@ construct_task (struct rspamd_worker *worker) # else clock_gettime (CLOCK_REALTIME, &new_task->ts); # endif -#else +#endif if (gettimeofday (&new_task->tv, NULL) == -1) { msg_warn ("gettimeofday failed: %s", strerror (errno)); } -#endif io_tv.tv_sec = WORKER_IO_TIMEOUT; io_tv.tv_usec = 0; new_task->task_pool = memory_pool_new (memory_pool_get_size ()); |