gitlive.js
authorAlan Knowles <alan@wideboy.(none)>
Wed, 28 Apr 2010 14:50:00 +0000 (22:50 +0800)
committerAlan Knowles <alan@wideboy.(none)>
Wed, 28 Apr 2010 14:50:00 +0000 (22:50 +0800)
gitlive.js

index c7d2bc1..2814dca 100644 (file)
@@ -50,7 +50,10 @@ var monitor = new Monitor({
             if (!_this.queue.length) {
                 return 0;
             }
-            Math.floor(((new Date()) - this.lastAdd) / 100)
+            var last = Math.floor(((new Date()) - this.lastAdd) / 100);
+            if (last < 5) { // wait 1/2 a seconnd before running.
+                return 0;
+            }
             _this.runQueue();
         },null,null);