emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/detached e96156ab4a: Improve id creation


From: ELPA Syncer
Subject: [elpa] externals/detached e96156ab4a: Improve id creation
Date: Fri, 9 Sep 2022 08:57:36 -0400 (EDT)

branch: externals/detached
commit e96156ab4a9540bd7d8e8e77af7773d52c7a001e
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>

    Improve id creation
    
    The usage of current-time-string will not suffice if a session is
    rapidly rerun within a second. Resort to using the current-time-string
    instead.
---
 detached.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/detached.el b/detached.el
index 45d7bbc6b7..5f8ab0cb77 100644
--- a/detached.el
+++ b/detached.el
@@ -1345,7 +1345,7 @@ log to deduce the end time."
 
 (defun detached--create-id (command)
   "Return a hash identifier for COMMAND."
-  (let ((current-time (current-time-string)))
+  (let ((current-time (number-to-string (time-to-seconds))))
     (secure-hash 'md5 (concat command current-time))))
 
 (defun detached--env-message-filter (str)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]