Changeset 9957


Ignore:
Timestamp:
Jan 17, 2010, 4:20:28 PM (12 years ago)
Author:
livings124
Message:

using ABS is better than multiplying by -1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Torrent.m

    r9927 r9957  
    14501450- (NSInteger) stalledMinutes
    14511451{
    1452     time_t start = fStat->startDate;
     1452    const time_t start = fStat->startDate;
    14531453    if (start == 0)
    14541454        return -1;
     
    14581458   
    14591459    NSDate * laterDate = activity ? [started laterDate: activity] : started;
    1460     return -1 * [laterDate timeIntervalSinceNow] / 60;
     1460   
     1461    return ABS([laterDate timeIntervalSinceNow]) / 60;
    14611462}
    14621463
Note: See TracChangeset for help on using the changeset viewer.