Ignore:
Timestamp:
Jul 11, 2010, 9:02:30 PM (12 years ago)
Author:
livings124
Message:

Have libtransmission keep track of idle seconds. Use this value for determining the stalled minutes in the Mac code.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r10949 r10999  
    14801480- (NSInteger) stalledMinutes
    14811481{
    1482     const time_t start = fStat->startDate;
    1483     if (start == 0)
    1484         return -1;
    1485    
    1486     NSDate * started = [NSDate dateWithTimeIntervalSince1970: start],
    1487             * activity = [self dateActivity];
    1488    
    1489     NSDate * laterDate = activity ? [started laterDate: activity] : started;
    1490    
    1491     return ABS([laterDate timeIntervalSinceNow]) / 60;
     1482    return fStat->idleSecs / 60;
    14921483}
    14931484
Note: See TracChangeset for help on using the changeset viewer.