From fa9cdd21c108d2ac0ec85e8cfe5a8f3b975e2266 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Thu, 23 Jun 2022 15:08:31 -0400 Subject: [PATCH] Refresh key on specified period, rather than on a fixed 15-second interval --- sshyp-mfa/bin/sshyp-mfa.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sshyp-mfa/bin/sshyp-mfa.py b/sshyp-mfa/bin/sshyp-mfa.py index b953a1f..0e85868 100755 --- a/sshyp-mfa/bin/sshyp-mfa.py +++ b/sshyp-mfa/bin/sshyp-mfa.py @@ -59,7 +59,7 @@ if __name__ == '__main__': print('\nmfa key copied to clipboard\n\nuntil this process is closed, your clipboard will be automatically ' 'updated with the newest mfa key') while True: - if str(int(strftime('%S'))/15).endswith('.0') or copied is None: + if str(int(strftime('%S'))/mfa_data[4]).endswith('.0') or copied is None: if copied is None: copied = 1 if mfa_data[0] == 'steam':