aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/task.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-18 12:24:31 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-07-18 12:24:31 +0100
commitdf5d064b0ca52b81154e6a959e9ae05792b4f706 (patch)
tree351726adf66c36784fa9a807b0a6bfb5df906caf /src/libserver/task.c
parent48d68b15e08a6c3b597f4de6400815e294c61ace (diff)
downloadrspamd-df5d064b0ca52b81154e6a959e9ae05792b4f706.tar.gz
rspamd-df5d064b0ca52b81154e6a959e9ae05792b4f706.zip
[Minor] Improve symbols execution profiling logic
Diffstat (limited to 'src/libserver/task.c')
-rw-r--r--src/libserver/task.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/libserver/task.c b/src/libserver/task.c
index 402f39987..fd14a68f2 100644
--- a/src/libserver/task.c
+++ b/src/libserver/task.c
@@ -90,15 +90,7 @@ rspamd_task_new (struct rspamd_worker *worker, struct rspamd_config *cfg,
}
new_task->event_loop = event_loop;
- if (event_loop) {
- new_task->task_timestamp = ev_time ();
- new_task->time_virtual = ev_now (event_loop);
- }
- else {
- new_task->task_timestamp = ev_time ();
- new_task->time_virtual = rspamd_get_virtual_ticks ();
- }
-
+ new_task->task_timestamp = ev_time ();
new_task->time_real_finish = NAN;
if (pool == NULL) {