summaryrefslogtreecommitdiff
path: root/eshell-conf.el
diff options
context:
space:
mode:
Diffstat (limited to 'eshell-conf.el')
-rw-r--r--eshell-conf.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/eshell-conf.el b/eshell-conf.el
index e99f037..42b727d 100644
--- a/eshell-conf.el
+++ b/eshell-conf.el
@@ -58,7 +58,10 @@
(elapsed-time-list (time-convert elapsed-time 'list))
(elapsed-time-int (time-convert elapsed-time 'integer))
(format-seconds-string
- (format-seconds "%yy %dd %hh %mm %ss%z" elapsed-time-int))
+ (cond ((> elapsed-time-int 0)
+ (format-seconds
+ "%yy %dd %hh %mm %ss%z"
+ elapsed-time-int))))
(microseconds (caddr elapsed-time-list))
(micro-str
(cond ((or (>= elapsed-time-int 1) (> microseconds 10000))