Changeset 14215


Ignore:
Timestamp:
Oct 27, 2013, 8:56:10 PM (9 years ago)
Author:
livings124
Message:

#5501 Zero-sized files not shown correctly

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r14119 r14215  
    14081408        [self updateFileStat];
    14091409   
     1410    // #5501
     1411    if ([node size] == 0) {
     1412        return 1.0;
     1413    }
     1414   
    14101415    NSIndexSet * indexSet = [node indexes];
    14111416   
     
    14171422        have += fFileStat[index].bytesCompleted;
    14181423   
    1419     NSAssert([node size], @"directory in torrent file has size 0");
    14201424    return (CGFloat)have / [node size];
    14211425}
Note: See TracChangeset for help on using the changeset viewer.