mirror of
https://github.com/transmission/transmission.git
synced 2025-12-19 18:08:31 +00:00
fix multipleRatioLimits (#6698)
* fix multipleRatioLimits * fix building on macOS 11
This commit is contained in:
@@ -296,7 +296,7 @@ static CGFloat const kStackViewSpacing = 8.0;
|
||||
checkRatio = kInvalidValue;
|
||||
}
|
||||
|
||||
if (!multipleRatioLimits && isRatioEqual(ratioLimit, torrent.ratioLimit))
|
||||
if (!multipleRatioLimits && !isRatioEqual(ratioLimit, torrent.ratioLimit))
|
||||
{
|
||||
multipleRatioLimits = YES;
|
||||
}
|
||||
|
||||
@@ -2,7 +2,9 @@
|
||||
// It may be used under the MIT (SPDX: MIT) license.
|
||||
// License text can be found in the licenses/ folder.
|
||||
|
||||
#import <CoreFoundation/CoreFoundation.h>
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
// 0.1 precision
|
||||
bool isSpeedEqual(CGFloat old_speed, CGFloat new_speed);
|
||||
// 0.01 precision
|
||||
bool isRatioEqual(CGFloat old_ratio, CGFloat new_ratio);
|
||||
|
||||
Reference in New Issue
Block a user