1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

update news and use a INT_MAX when determining order value to remove

This commit is contained in:
Mitchell Livingston 2008-01-10 20:59:56 +00:00
parent 939f1541c6
commit 07e5c9e22a
4 changed files with 14 additions and 8 deletions

6
NEWS
View file

@ -6,11 +6,13 @@ NEWS file for Transmission <http://transmission.m0k.org/>
1.01 (2008/xx/yy)
- All Platforms:
+ Improve reconnection to peers with imperfect network connections
+ Fix 1.00 temporary freezing issue
+ Fix 1.00 freezing issue
+ Fix 1.00 assertion failure
+ Improve reconnection to peers with imperfect network connections
+ Fix crashes on architectures that require strict alignment
- OS X:
+ Leopard: Better behavior with Time Machine
+ Fix bugs with Clutch support
- GTK+:
+ New Brazilian Portuguese, Chinese, Dutch, and Turkish translations
+ Fix 1.00 desktop internationalization error

View file

@ -1157,11 +1157,10 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
while ((torrent = [enumerator nextObject]))
[torrent setWaitToStart: NO];
int lowestOrderValue = [fTorrents count];
[fTorrents removeObjectsInArray: torrents];
[fDisplayedTorrents removeObjectsInArray: torrents];
int lowestOrderValue = INT_MAX;
enumerator = [torrents objectEnumerator];
while ((torrent = [enumerator nextObject]))
{
@ -2450,7 +2449,6 @@ void sleepCallBack(void * controller, io_service_t y, natural_t messageType, voi
//get all torrents to reorder
NSSortDescriptor * orderDescriptor = [[[NSSortDescriptor alloc] initWithKey:
@"orderValue" ascending: YES] autorelease];
NSArray * descriptors = [NSArray arrayWithObject: orderDescriptor];
NSMutableArray * sortedTorrents = [[fTorrents sortedArrayUsingDescriptors:
[NSArray arrayWithObject: orderDescriptor]] mutableCopy];

View file

@ -160,6 +160,7 @@ typedef enum
- (float) progress;
- (float) progressDone;
- (float) progressLeft;
- (float) checkingProgress;
- (int) eta;
- (int) etaRatio;

View file

@ -762,6 +762,11 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
return (float)[self sizeLeft] / [self size];
}
- (float) checkingProgress
{
return fStat->recheckProgress;
}
- (int) eta
{
return fStat->eta;
@ -975,7 +980,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
case TR_STATUS_CHECK:
string = [NSString stringWithFormat: NSLocalizedString(@"Checking existing data (%.2f%%)",
"Torrent -> status string"), 100.0 * fStat->recheckProgress];
"Torrent -> status string"), 100.0 * [self checkingProgress]];
break;
case TR_STATUS_DOWNLOAD:
@ -1044,7 +1049,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
case TR_STATUS_CHECK:
string = [NSString stringWithFormat: NSLocalizedString(@"Checking existing data (%.2f%%)",
"Torrent -> status string"), 100.0 * fStat->recheckProgress];
"Torrent -> status string"), 100.0 * [self checkingProgress]];
break;
case TR_STATUS_DOWNLOAD:
@ -1091,7 +1096,7 @@ void completenessChangeCallback(tr_torrent * torrent, cp_status_t status, void *
case TR_STATUS_CHECK:
return [NSString stringWithFormat: NSLocalizedString(@"Checking existing data (%.2f%%)",
"Torrent -> status string"), 100.0 * fStat->recheckProgress];
"Torrent -> status string"), 100.0 * [self checkingProgress]];
case TR_STATUS_CHECK_WAIT:
return [NSLocalizedString(@"Waiting to check existing data", "Torrent -> status string") stringByAppendingEllipsis];