Changeset 5573


Ignore:
Timestamp:
Apr 9, 2008, 6:40:22 PM (14 years ago)
Author:
livings124
Message:

(1.1x) a little extra safety when determining space needed to download

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r5569 r5573  
    569569                                                        : [fileManager fileAttributesAtPath: path traverseLink: NO];
    570570                    if (fileAttributes)
    571                         neededSpace -= [[fileAttributes objectForKey: NSFileSize] unsignedLongLongValue];
     571                    {
     572                        unsigned long long fileSize = [[fileAttributes objectForKey: NSFileSize] unsignedLongLongValue];
     573                        if (fileSize < neededSpace)
     574                            neededSpace -= fileSize;
     575                        else
     576                            neededSpace = 0;
     577                    }
    572578                }
    573579            }
  • trunk/macosx/TorrentCell.m

    r5459 r5573  
    498498    }
    499499   
     500    #warning alter
    500501    //text color
    501502    NSColor * titleColor, * statusColor;
Note: See TracChangeset for help on using the changeset viewer.