From: Frédéric Péters Date: Mon, 6 Sep 2021 13:19:20 +0000 (+0200) Subject: rate limit progress messages X-Git-Url: https://git.0d.be/?p=git-acab.git;a=commitdiff_plain;h=refs%2Fheads%2Fmain rate limit progress messages --- 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]' % (