summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-05-21 10:01:01 +0200
committerPeter Wu <peter@lekensteyn.nl>2014-05-21 10:01:01 +0200
commit463bee2a5fe68e2652a89c07733164f6172ea1f6 (patch)
treeadbc96168d42d755dd21b8f86dfc2d3b8bac2157
parent0a5c3a28330e7b8f18b950bb98aa3ac1ae234537 (diff)
downloadd3viz-463bee2a5fe68e2652a89c07733164f6172ea1f6.tar.gz
Fix ratelimiting
-rw-r--r--preprocess.js2
1 files changed, 1 insertions, 1 deletions
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) {