From 4e8e9bdac5068a0c8b1036d0673baabca283031f Mon Sep 17 00:00:00 2001 From: Dan Federman Date: Thu, 18 Sep 2025 21:14:29 -0700 Subject: [PATCH] Correct time calculations --- Sources/Segment/Utilities/QueueTimer.swift | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Sources/Segment/Utilities/QueueTimer.swift b/Sources/Segment/Utilities/QueueTimer.swift index 4f01a700..003aafce 100644 --- a/Sources/Segment/Utilities/QueueTimer.swift +++ b/Sources/Segment/Utilities/QueueTimer.swift @@ -73,7 +73,7 @@ internal class QueueTimer { extension TimeInterval { static func milliseconds(_ value: Int) -> TimeInterval { - return TimeInterval(value / 1000) + return TimeInterval(value) / 1000 } static func seconds(_ value: Int) -> TimeInterval { @@ -81,10 +81,10 @@ extension TimeInterval { } static func hours(_ value: Int) -> TimeInterval { - return TimeInterval(60 * value) + return TimeInterval(60 * 60 * value) } static func days(_ value: Int) -> TimeInterval { - return TimeInterval((60 * value) * 24) + return TimeInterval((60 * 60 * value) * 24) } }