diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-02 14:42:40 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-10-02 14:42:40 +0100 |
commit | fd342f3a0c2cbe9c9d7419d040d995567d5c41f7 (patch) | |
tree | 6c6208fd58b755054aa189b7895307b5357da9e3 /src/controller.c | |
parent | fe23860efb6664f86a24446c16c5c5a8858a055c (diff) | |
download | rspamd-fd342f3a0c2cbe9c9d7419d040d995567d5c41f7.tar.gz rspamd-fd342f3a0c2cbe9c9d7419d040d995567d5c41f7.zip |
Add sorting hints for the history.
Diffstat (limited to 'src/controller.c')
-rw-r--r-- | src/controller.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/controller.c b/src/controller.c index 04c72e8b7..7e6a442d0 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), |