diff options
author | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-04 08:49:05 +0000 |
---|---|---|
committer | Artur Malabarba <bruce.connor.am@gmail.com> | 2014-11-04 08:49:05 +0000 |
commit | e8e830e91941559b34818dcf04193e956ff8affa (patch) | |
tree | 830c24b6c2c53592d5154195f71c560188f936b1 /stack-core.el | |
parent | d5ae66d93678ebb8a245221dfeda46c293fb3875 (diff) |
Make stack-core--seconds-to-string more descriptive.
Diffstat (limited to 'stack-core.el')
-rw-r--r-- | stack-core.el | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/stack-core.el b/stack-core.el index a030525..7072fd8 100644 --- a/stack-core.el +++ b/stack-core.el @@ -275,12 +275,14 @@ context of `stack-cache-directory'." data) (defvar stack-core--seconds-to-string - '((1 "ms" 0.001) - (100 "s" 1) - (6000 "m" 60.0) - (108000 "h" 3600.0) - (34560000 "d" 86400.0) - (nil "y" 31557600.0)) + ;; (LIMIT NAME VALUE) + ;; We use an entry if the number of seconds in question is less than + ;; LIMIT, but more than the previous entry's LIMIT. + '((100 "s" 1) + (6000 "m" 60.0) + (108000 "h" 3600.0) + (34560000 "d" 86400.0) + (nil "y" 31557600.0)) "Auxiliary variable used by `stack--time-since'.") (defun stack--time-since (time) |