struct rspamd_metric_result *mres;
struct rspamd_symbol_result *sym;
gint id, i;
- guint32 *sid, n = 0, nextra = 0;
+ guint32 sid, n = 0, nextra = 0;
gsize sz;
GArray *extra;
struct rspamd_protocol_log_symbol_result er;
sid = task->settings_id;
if (sid) {
- ls->settings_id = *sid;
+ ls->settings_id = sid;
}
else {
ls->settings_id = 0;
struct rspamd_symcache_dynamic_item *dyn_item;
gdouble t2, diff;
guint i;
- struct timeval tv;
const gdouble slow_diff_limit = 300;
/* Sanity checks */
checkpoint->cur_item = NULL;
#ifdef HAVE_EVENT_NO_CACHE_TIME_FUNC
+ struct timeval tv;
event_base_update_cache_time (task->ev_base);
event_base_gettimeofday_cached (task->ev_base, &tv);
t2 = tv_to_double (&tv);