mirror of
https://github.com/transmission/transmission
synced 2025-03-16 00:39:34 +00:00
safety
This commit is contained in:
parent
68d355b497
commit
1b0b2222c6
1 changed files with 1 additions and 1 deletions
|
@ -1405,7 +1405,7 @@ static uint32_t kRed = BE(0xFF6450FF), //255, 100, 80
|
|||
NSDate * started = [NSDate dateWithTimeIntervalSince1970: start / 1000],
|
||||
* activity = [self dateActivity];
|
||||
|
||||
NSDate * laterDate = !activity || [started compare: activity] == NSOrderedDescending ? started : activity;
|
||||
NSDate * laterDate = (!activity || [started compare: activity] == NSOrderedDescending) ? started : activity;
|
||||
return -1 * [laterDate timeIntervalSinceNow] / 60;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue