Skip to content

Commit 4748a30

Browse files
committed
apply floor to elapsed time
1 parent 66141e4 commit 4748a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WooCommerce/Classes/POS/Analytics/POSCollectOrderPaymentAnalytics.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ final class POSCollectOrderPaymentAnalytics: CollectOrderPaymentAnalyticsTrackin
2727
}
2828

2929
private func calculateElapsedTimeInMilliseconds(start: Double, end: Double) -> Double {
30-
(end - start) * 1000
30+
floor((end - start) * 1000)
3131
}
3232
}
3333

0 commit comments

Comments
 (0)