From 629f9ff70080f13a56056a7ecc2fa9ce611b4cf9 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 14 Mar 2017 14:39:34 +0000 Subject: [PATCH] [Minor] Save unix time in redis history --- src/plugins/lua/history_redis.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/lua/history_redis.lua b/src/plugins/lua/history_redis.lua index 18cc9b5d6..9f7046ca0 100644 --- a/src/plugins/lua/history_redis.lua +++ b/src/plugins/lua/history_redis.lua @@ -63,6 +63,9 @@ local function normalise_results(tbl, task) tbl.messages = nil tbl.urls = nil + local seconds = task:get_timeval()['tv_sec'] + tbl.unix_time = seconds + tbl.subject = task:get_header('subject') or 'unknown' end -- 2.39.5