From: Vsevolod Stakhov Date: Fri, 2 Oct 2015 13:42:40 +0000 (+0100) Subject: Add sorting hints for the history. X-Git-Tag: 1.0.4~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd342f3a0c2cbe9c9d7419d040d995567d5c41f7;p=thirdparty%2Frspamd.git Add sorting hints for the history. --- diff --git a/src/controller.c b/src/controller.c index 04c72e8b7f..7e6a442d09 100644 --- a/src/controller.c +++ b/src/controller.c @@ -1088,6 +1088,8 @@ rspamd_controller_handle_history (struct rspamd_http_connection_entry *conn_ent, obj = ucl_object_typed_new (UCL_OBJECT); ucl_object_insert_key (obj, ucl_object_fromstring ( timebuf), "time", 0, false); + ucl_object_insert_key (obj, ucl_object_fromint ( + row->tv.tv_sec), "unix_time", 0, false); ucl_object_insert_key (obj, ucl_object_fromstring ( row->message_id), "id", 0, false); ucl_object_insert_key (obj, ucl_object_fromstring (row->from_addr),