Skip to content

Commit abbe7d2

Browse files
committed
Fix uptimeNanoseconds.
1 parent 0ffd6fd commit abbe7d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/swift/Time.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ public struct DispatchTime : Comparable {
7979
// UInt64.max means distantFuture. Do not try to scale it.
8080
if rawValue != UInt64.max && DispatchTime.timebaseInfo.numer != DispatchTime.timebaseInfo.denom {
8181
(result, overflow) = result.multipliedReportingOverflow(by: UInt64(DispatchTime.timebaseInfo.numer))
82-
result = (overflow ? UInt64.max : result)/UInt64(DispatchTime.timebaseInfo.denom)
82+
result = overflow ? UInt64.max : result / UInt64(DispatchTime.timebaseInfo.denom)
8383
}
8484
#endif
8585
return result

0 commit comments

Comments
 (0)