Do not check time/refresh TOTP every second - calculate time till next 30-second interval, instead

This commit is contained in:
2024-03-18 19:17:47 -04:00
parent ca14abbae9
commit 0687ce0954
2 changed files with 13 additions and 13 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ func main() {
case "note", "-n":
field = 3
case "totp", "-t":
fmt.Println("TOTP code copied to clipboard - until this process is closed, your clipboard will be kept up to date with the current TOTP code")
fmt.Println("TOTP code will be copied to clipboard - your clipboard will be kept up to date with the current TOTP code until this process is closed")
field = 5 // TODO Update field after removed from notes (breaking sshyp entry compatibility)
default:
cli.HelpCopy()