Fix math for converting minutes or hours to seconds
This commit is contained in:
parent
66a6845e44
commit
307176997f
3 changed files with 4 additions and 4 deletions
|
@ -543,7 +543,7 @@
|
|||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.2;
|
||||
MARKETING_VERSION = 1.3;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.wbrawner.pihelper;
|
||||
PRODUCT_NAME = "Pi-helper";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "PiHelper/PiHelper-Bridging-Header.h";
|
||||
|
@ -568,7 +568,7 @@
|
|||
"$(inherited)",
|
||||
"@executable_path/Frameworks",
|
||||
);
|
||||
MARKETING_VERSION = 1.2;
|
||||
MARKETING_VERSION = 1.3;
|
||||
PRODUCT_BUNDLE_IDENTIFIER = com.wbrawner.pihelper;
|
||||
PRODUCT_NAME = "Pi-helper";
|
||||
SWIFT_OBJC_BRIDGING_HEADER = "PiHelper/PiHelper-Bridging-Header.h";
|
||||
|
|
|
@ -65,7 +65,7 @@
|
|||
<BuildableReference
|
||||
BuildableIdentifier = "primary"
|
||||
BlueprintIdentifier = "2821266B235926E700072D52"
|
||||
BuildableName = "PiHelper.app"
|
||||
BuildableName = "Pi-helper.app"
|
||||
BlueprintName = "Pi-Helper"
|
||||
ReferencedContainer = "container:PiHelper.xcodeproj">
|
||||
</BuildableReference>
|
||||
|
|
|
@ -253,7 +253,7 @@ class PiHoleDataStore: ObservableObject {
|
|||
}
|
||||
|
||||
func disable(_ forDuration: Int, unit: Int) {
|
||||
let multiplier = NSDecimalNumber(decimal: pow(60, unit + 1)).intValue
|
||||
let multiplier = NSDecimalNumber(decimal: pow(60, unit)).intValue
|
||||
disable(forDuration * multiplier)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue