aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/roll_history.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-13 17:46:50 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2015-07-13 17:46:50 +0100
commitd2a938d398d31fae55e709a4e219b5acfa5c7622 (patch)
tree616ee4dacde622e13ee26f4437febf9e5eae4661 /src/libserver/roll_history.c
parent444c70ff896dcd07f1569e394b528cf1f61dec54 (diff)
downloadrspamd-d2a938d398d31fae55e709a4e219b5acfa5c7622.tar.gz
rspamd-d2a938d398d31fae55e709a4e219b5acfa5c7622.zip
Rework parts and task structure:
- Now text_parts, parts and received are arrays - Pre-allocate arrays with some reasonable defaults - Use arrays instead of lists in plugins and checks - Remove unused fields from task structure - Rework mime_foreach callback function - Remove deprecated scan_milliseconds field
Diffstat (limited to 'src/libserver/roll_history.c')
-rw-r--r--src/libserver/roll_history.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/roll_history.c b/src/libserver/roll_history.c
index c494ce74c..9effcfc3a 100644
--- a/src/libserver/roll_history.c
+++ b/src/libserver/roll_history.c
@@ -154,7 +154,7 @@ rspamd_roll_history_update (struct roll_history *history,
}
}
- row->scan_time = task->scan_milliseconds;
+ row->scan_time = rspamd_get_ticks () - task->time_real;
row->len = task->msg.len;
row->completed = TRUE;
}