We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 323f190 commit c291874Copy full SHA for c291874
Sources/Segment/Utilities/QueueTimer.swift
@@ -73,18 +73,18 @@ internal class QueueTimer {
73
74
extension TimeInterval {
75
static func milliseconds(_ value: Int) -> TimeInterval {
76
- return TimeInterval(value / 1000)
+ return TimeInterval(value) / 1000
77
}
78
79
static func seconds(_ value: Int) -> TimeInterval {
80
return TimeInterval(value)
81
82
83
static func hours(_ value: Int) -> TimeInterval {
84
- return TimeInterval(60 * value)
+ return TimeInterval(60 * 60 * value)
85
86
87
static func days(_ value: Int) -> TimeInterval {
88
- return TimeInterval((60 * value) * 24)
+ return TimeInterval((60 * 60 * value) * 24)
89
90
0 commit comments