[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    extragear/network/ktorrent
From:       Joris Guisson <joris.guisson () gmail ! com>
Date:       2009-01-11 12:57:30
Message-ID: 1231678650.720989.16463.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 909342 by guisson:

- Fix bug in bandwidth scheduler causing bandwidth schedule to be set continously 
- Make sure that setPausedState doesn't do anyting if the paused state doesn't change \


BUG: 180230

 M  +2 -0      ChangeLog  
 M  +3 -0      libktcore/torrent/queuemanager.cpp  
 M  +2 -2      plugins/bwscheduler/schedule.cpp  


--- trunk/extragear/network/ktorrent/ChangeLog #909341:909342
@@ -45,6 +45,8 @@
 - Fix bug with wrong byteorder of PEX messages
 - Use KLocale::formatBytes so that KTorrent behaves the same as the rest of KDE when \
                displaying sizes and speeds in bytes µ
 - Improve performance of downlod thread by using a socket to wake up the poll call, \
instead of a regular poll every second +- Fix bug in bandwidth scheduler causing \
bandwidth schedule to be set continously  +- Make sure that setPausedState doesn't do \
anyting if the paused state doesn't change (180230)  
 Changes in 3.2beta1 :
 - Ask to create directory in fileselectdlg, if it does not exist (163965)
--- trunk/extragear/network/ktorrent/libktcore/torrent/queuemanager.cpp \
#909341:909342 @@ -639,6 +639,9 @@
 	
 	void QueueManager::setPausedState(bool pause)
 	{
+		if (paused_state == pause)
+			return;
+		
 		paused_state = pause;	
 		if(!pause)
 		{
--- trunk/extragear/network/ktorrent/plugins/bwscheduler/schedule.cpp #909341:909342
@@ -263,9 +263,9 @@
 		for (iterator itr = begin();itr != end();itr++)
 		{
 			ScheduleItem* i = *itr;
-			if (i->day == now.date().dayOfWeek())
+			if (i->day == now.date().dayOfWeek() && i->start > now.time())
 			{
-				if (!item || (i->start < item->start && i->start > now.time()))
+				if (!item || i->start < item->start)
 					item = i;
 			}
 		}


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic