From 307176997fe392aa44b648b9ee1a5182aa1ac1ab Mon Sep 17 00:00:00 2001 From: William Brawner Date: Tue, 7 Jul 2020 22:06:34 -0700 Subject: [PATCH] Fix math for converting minutes or hours to seconds --- PiHelper.xcodeproj/project.pbxproj | 4 ++-- PiHelper.xcodeproj/xcshareddata/xcschemes/PiHelper.xcscheme | 2 +- PiHelper/PiHoleDataStore.swift | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PiHelper.xcodeproj/project.pbxproj b/PiHelper.xcodeproj/project.pbxproj index ac15cba..9ea7be1 100644 --- a/PiHelper.xcodeproj/project.pbxproj +++ b/PiHelper.xcodeproj/project.pbxproj @@ -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"; diff --git a/PiHelper.xcodeproj/xcshareddata/xcschemes/PiHelper.xcscheme b/PiHelper.xcodeproj/xcshareddata/xcschemes/PiHelper.xcscheme index 57d1b36..adf484d 100644 --- a/PiHelper.xcodeproj/xcshareddata/xcschemes/PiHelper.xcscheme +++ b/PiHelper.xcodeproj/xcshareddata/xcschemes/PiHelper.xcscheme @@ -65,7 +65,7 @@ diff --git a/PiHelper/PiHoleDataStore.swift b/PiHelper/PiHoleDataStore.swift index 53a4080..0bb816d 100644 --- a/PiHelper/PiHoleDataStore.swift +++ b/PiHelper/PiHoleDataStore.swift @@ -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) }