emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#27662: closed ([PATCH] base: Fix time-monotonic Gu


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#27662: closed ([PATCH] base: Fix time-monotonic Guile issue.)
Date: Wed, 12 Jul 2017 17:06:01 +0000

Your message dated Wed, 12 Jul 2017 19:05:32 +0200
with message-id <address@hidden>
and subject line Re: [bug#27662] [PATCH] base: Fix time-monotonic Guile issue.
has caused the debbugs.gnu.org bug report #27662,
regarding [PATCH] base: Fix time-monotonic Guile issue.
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
27662: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=27662
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: [PATCH] base: Fix time-monotonic Guile issue. Date: Wed, 12 Jul 2017 10:11:12 +0200
* src/cuirass/base.scm: Replace time-monotonic with time-tai with
  Guile 2.2, to avoid wrong evaluation durations.
---
 src/cuirass/base.scm | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/cuirass/base.scm b/src/cuirass/base.scm
index 5e0cb0d..d0e77d9 100644
--- a/src/cuirass/base.scm
+++ b/src/cuirass/base.scm
@@ -45,6 +45,13 @@
             %package-cachedir
             %use-substitutes?))
 
+(cond-expand
+  (guile-2.2
+   ;; Guile 2.2.2 has a bug whereby 'time-monotonic' objects have seconds and
+   ;; nanoseconds swapped (fixed in Guile commit 886ac3e).  Work around it.
+   (define time-monotonic time-tai))
+  (else #t))
+
 (define %use-substitutes?
   ;; Define whether to use substitutes
   (make-parameter #f))
-- 
2.13.1




--- End Message ---
--- Begin Message --- Subject: Re: [bug#27662] [PATCH] base: Fix time-monotonic Guile issue. Date: Wed, 12 Jul 2017 19:05:32 +0200 User-agent: mu4e 0.9.18; emacs 25.2.1
Pushed thanks !


--- End Message ---

reply via email to

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