aboutsummaryrefslogtreecommitdiff
path: root/modules/messages.py
diff options
context:
space:
mode:
authorGravatar jesopo2020-02-24 10:18:55 +0000
committerGravatar jesopo2020-02-24 10:18:55 +0000
commit8f9c063114def747b8fbabe8c3a48c7708474e2c (patch)
tree745c1f7287a5abbc0f0a8dc6c1473d77bbad1452 /modules/messages.py
parent`command` doesn't exist - use event["spec"][2] (diff)
signature
only do to_pretty_time as relative when requested
Diffstat (limited to 'modules/messages.py')
-rw-r--r--modules/messages.py2
1 files changed, 1 insertions, 1 deletions
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"