OSDN Git Service

Fixed a across-day bug for Floodgate.
authorbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sun, 3 Feb 2008 15:19:17 +0000 (15:19 +0000)
committerbeatles <beatles@b8c68f68-1e22-0410-b08e-880e1f8202b4>
Sun, 3 Feb 2008 15:19:17 +0000 (15:19 +0000)
changelog
shogi-server

index 463b650..9fcded7 100644 (file)
--- a/changelog
+++ b/changelog
@@ -3,6 +3,8 @@
        * [shogi-server]
          - Game names that are recognized as the floodgate mode are now 
            /^floodgate-\d+-\d+$/.
+         - Floodgate could not schedule the next time when it was the next
+           day. This issue has been fixed.
 
 2008-02-02 Daigo Moriwaki <daigo at debian dot org>
 
index e16641e..3ab2267 100755 (executable)
@@ -132,13 +132,13 @@ class League
       if now.min < 30
         @next_time = Time.mktime(now.year, now.month, now.day, now.hour, 30)
       else
-        @next_time = Time.mktime(now.year, now.month, now.day, now.hour+1)
+        @next_time = Time.mktime(now.year, now.month, now.day, now.hour) + 3600
       end
       # for test
       # if now.sec < 30
       #   @next_time = Time.mktime(now.year, now.month, now.day, now.hour, now.min, 30)
       # else
-      #   @next_time = Time.mktime(now.year, now.month, now.day, now.hour, now.min + 1)
+      #   @next_time = Time.mktime(now.year, now.month, now.day, now.hour, now.min) + 60
       # end
     end