aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt b/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
index b2633c71..34288f50 100644
--- a/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
+++ b/format-common/src/main/kotlin/dev/msfjarvis/aps/data/passfile/PasswordEntry.kt
@@ -87,7 +87,7 @@ constructor(
if (totpSecret != null) {
scope.launch {
updateTotp(clock.millis())
- val remainingTime = totpPeriod - (System.currentTimeMillis() % totpPeriod)
+ val remainingTime = totpPeriod - (clock.millis() % totpPeriod)
delay(Duration.seconds(remainingTime))
repeat(Int.MAX_VALUE) {
updateTotp(clock.millis())