Changeset 5630
- Timestamp:
- Apr 16, 2008, 12:32:07 PM (14 years ago)
- Location:
- trunk/macosx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/PrefsController.m
r5577 r5630 667 667 } 668 668 669 //for network view make sure progress indicator hides itself 670 if ( view == fNetworkView && [fPortStatusImage image])669 //for network view make sure progress indicator hides itself (get around a Tiger bug) 670 if (![NSApp isOnLeopardOrBetter] && view == fNetworkView && [fPortStatusImage image]) 671 671 [fPortStatusProgress setDisplayedWhenStopped: NO]; 672 672 } -
trunk/macosx/Torrent.m
r5628 r5630 875 875 { 876 876 if (![self isSeeding]) 877 return -1;877 return TR_ETA_UNKNOWN; 878 878 879 879 float uploadRate = [self uploadRate]; … … 888 888 } 889 889 890 #warning when stats change, elliminate the use of size and make use of just the 2 fields891 890 - (float) notAvailableDesired 892 891 { 893 return (float)(fStat->leftUntilDone - fStat->desiredAvailable) / [self size];892 return 1.0 - (float)fStat->desiredAvailable / [self sizeLeft]; 894 893 } 895 894 -
trunk/macosx/TorrentCell.m
r5586 r5630 678 678 && [fDefaults boolForKey: @"DisplayProgressBarAvailable"]) 679 679 { 680 int notAvailableWidth = MIN(ceil(barRect.size.width * [torrent notAvailableDesired]), rightWidth);680 int notAvailableWidth = ceil(rightWidth * [torrent notAvailableDesired]); 681 681 if (notAvailableWidth > 0) 682 682 {
Note: See TracChangeset
for help on using the changeset viewer.