guix-commits
[Top][All Lists]
Advanced

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

01/02: bayfront: Fix goggles-bot rotation bug.


From: Maxim Cournoyer
Subject: 01/02: bayfront: Fix goggles-bot rotation bug.
Date: Thu, 1 Feb 2024 13:27:27 -0500 (EST)

apteryx pushed a commit to branch master
in repository maintenance.

commit c3ba2c3f4becdfd43dd3fc0dd67726c7d1448cee
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Thu Feb 1 13:23:30 2024 -0500

    bayfront: Fix goggles-bot rotation bug.
    
    * hydra/goggles-bot.scm (log-to-file): Fix new day detection logic.
    
    Reported-by: Ricardo Wurmus <rekado@elephly.net>
---
 hydra/goggles-bot.scm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/hydra/goggles-bot.scm b/hydra/goggles-bot.scm
index 6973259..42babc5 100755
--- a/hydra/goggles-bot.scm
+++ b/hydra/goggles-bot.scm
@@ -114,7 +114,7 @@ the current date as contained in TIME."
                 (day (day-for-channel channel)))
             (when (or (not day)
                       (not port)
-                      (< day (tm:mday time)))
+                      (not (= day (tm:mday time)))) ;today is a new day
               ;; Day's over, finish the file. 
               (when port
                 (force-output port)



reply via email to

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