From acab9ced2c724f299ef003007aed1adc74daca3b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20P=C3=A9ters?= Date: Mon, 6 Sep 2021 15:19:20 +0200 Subject: [PATCH] rate limit progress messages --- git-acab | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/git-acab b/git-acab index 9645ac2..4cd9839 100755 --- a/git-acab +++ b/git-acab @@ -30,11 +30,13 @@ def amend_commit(start_timestamp): ) authored_timestamp = start_timestamp base_env = os.environ + last_print = 0 while True: authored_timestamp -= 1 for committed_timestamp in range(start_timestamp, authored_timestamp, -1): counter += 1 - if not args.quiet: + if not args.quiet and time.time() - last_print > 0.05: + last_print = time.time() print( '%5d - %s - %s - [%s:%02d]' % ( -- 2.39.2