From 8f9c063114def747b8fbabe8c3a48c7708474e2c Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 24 Feb 2020 10:18:55 +0000 Subject: only do to_pretty_time as relative when requested --- modules/messages.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/messages.py') diff --git a/modules/messages.py b/modules/messages.py index f6c37530..19d9a1a3 100644 --- a/modules/messages.py +++ b/modules/messages.py @@ -16,7 +16,7 @@ class Module(ModuleManager.BaseModule): for i, message in enumerate(message_list): seconds = utils.datetime.seconds_since(message.line.timestamp) messages.append("(%d/%d) %s ago %s" % (i+1, message_count, - utils.datetime.format.to_pretty_time(seconds), + utils.datetime.format.to_pretty_since(seconds), message.line.format())) event["stdout"].write("%s: found: %s" -- cgit v1.3.1-10-gc9f91