Skip to content

Commit

Permalink
Fixed lint
Browse files Browse the repository at this point in the history
  • Loading branch information
joeldavidw committed Sep 28, 2024
1 parent 93703a8 commit 7bcc3ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Chronos/App/Tabs/Tokens/Row/TOTPRowView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ struct TOTPRowView: View {
private func updateProgress() {
let timeLeft = timeLeftForToken(period: token.period)
secsLeft = Int(timeLeft.rounded(.up))

// Circle progress will look smooth; however, the high redraw count causes significant CPU load.
// progress = timeLeft / Double(token.period)
progress = Double(secsLeft) / Double(token.period)

if secsLeft == token.period {
updateOtp()
}
Expand Down

0 comments on commit 7bcc3ee

Please sign in to comment.