]> granicus.if.org Git - transmission/commitdiff
Fix bug in schedule calculation
authorMukund Sivaraman <muks@mukund.org>
Wed, 3 Sep 2008 01:36:48 +0000 (01:36 +0000)
committerMukund Sivaraman <muks@mukund.org>
Wed, 3 Sep 2008 01:36:48 +0000 (01:36 +0000)
gtk/main.c

index 2617453ec18361dd609f3584fc28c6373691fd87..511111cafe6162a19166b42a65a1e7a4f4159705 100644 (file)
@@ -503,7 +503,7 @@ updateScheduledLimits(gpointer data)
         tm = localtime (&t);
         cur_time = (tm->tm_hour * 60) + tm->tm_min;
 
-        if( end_time >= begin_time )
+        if( end_time <= begin_time )
         {
             if( (cur_time >= begin_time) && (cur_time <= end_time) )
                 in_sched_state = TRUE;