]> source.dussan.org Git - rspamd.git/commitdiff
Add sorting hints for the history.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Oct 2015 13:42:40 +0000 (14:42 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Fri, 2 Oct 2015 13:42:40 +0000 (14:42 +0100)
src/controller.c

index 04c72e8b7f1e958fdaa71ac3913b8498cbcbd177..7e6a442d091f34dd9ac1fa4c1629488c71214e44 100644 (file)
@@ -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),