From 010678abbd469518342cd3f2fbd25049365a566b Mon Sep 17 00:00:00 2001 From: Phyks Date: Sat, 8 Nov 2014 17:15:25 +0100 Subject: [PATCH] Fix a bug with bloom filter indices when parsing binary file --- js/app.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/js/app.js b/js/app.js index 1fe7ee7..c048133 100644 --- a/js/app.js +++ b/js/app.js @@ -15,7 +15,7 @@ function callback() { // Sets up the page, that is now ready ready = true; - document.getElementById('main').innerHTML = '

'; + document.getElementById('main').innerHTML = '

'; // Handle onchange actions document.getElementById('search').oninput = function (e) { @@ -93,7 +93,7 @@ oReq.onload = function (oEvent) { var l = 0, tmp_array; for (var i = 0; i < nb_bloom_filters; i++) { tmp_array = byte_array.subarray(1 + nb_bloom_filters + l, 1 + nb_bloom_filters + l + lengths[i]); - var l = lengths[i]; + l += lengths[i]; bloom.push(new BloomFilter(tmp_array, error_rate)); }