]> git.0d.be Git - git-acab.git/blobdiff - git-acab
rate limit progress messages
[git-acab.git] / git-acab
index 9645ac2ae8cf3f7c49fdda9a90d51e7a537a09f0..4cd98394090534b56a51ee0488af1940f2d89ece 100755 (executable)
--- 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]'
                     % (