From 463bee2a5fe68e2652a89c07733164f6172ea1f6 Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Wed, 21 May 2014 10:01:01 +0200 Subject: Fix ratelimiting --- preprocess.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/preprocess.js b/preprocess.js index 2055382..831e3cf 100644 --- a/preprocess.js +++ b/preprocess.js @@ -15,7 +15,7 @@ function filterEdges(data) { var ratelimit_count = 0, ratelimit_max = 10; function ratelimit() { - return ratelimit_count <= ratelimit_max; + return ++ratelimit_count <= ratelimit_max; } // filter away invalid edges data.edges = data.edges.filter(function (link, i) { -- cgit v1.2.1