Changeset 2251


Ignore:
Timestamp:
Jun 30, 2007, 8:36:02 PM (15 years ago)
Author:
livings124
Message:

fix the warning for remaining size coming up when it shouldn't

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r2249 r2251  
    823823    NSDictionary * fsAttributes = [[NSFileManager defaultManager] fileSystemAttributesAtPath: [self downloadFolder]];
    824824    uint64_t remainingSpace = [[fsAttributes objectForKey: NSFileSystemFreeSize] unsignedLongLongValue],
    825             torrentRemaining = [self size] - (uint64_t)[self downloadedValid];
     825            torrentRemaining = fStat->left;
    826826   
    827827    if (volumeName && remainingSpace <= torrentRemaining)
Note: See TracChangeset for help on using the changeset viewer.