This commit is contained in:
Marko Budiselic 2016-03-20 14:41:41 +01:00
commit 4583ee1bbf

View File

@ -103,7 +103,7 @@
// put \n on module 2 space positions
var put_new_line_mod_2 = function(array) {
let join_array = array.map(function(o, i) {
if (i % 2 == 0)
if (i % 2 === 0)
return ' ';
else
return '\n';
@ -129,7 +129,7 @@
var queries = [
"CREATE (n{id:@}) RETURN n",
"MATCH (n{id:#}),(m{id:#}) CREATE (n)-[r:test]->(m) RETURN r",
"MATCH (n{id:#}) SET n.prop=^ RETURN n",
"MATCH (n{id:#}) SET n.prop=# RETURN n",
"MATCH (n{id:#}) RETURN n",
"MATCH (n{id:#})-[r]->(m) RETURN count(r)"
];
@ -221,7 +221,7 @@
strokeWidth: 3
}];
chartData.datum(newData).transition().duration(500).call(chart);
}
};
// update
function updateNeo4j() {
@ -234,7 +234,8 @@
url:'/stats', type:"GET",
success: function(data){
if (!data || !data.total || !data.per_query)
return
return;
neo4jSec = neo4jSec + 1;
neo4jLine.push({x: neo4jSec, y: data.total});
data.per_query.forEach(function(speed, i) {
@ -258,7 +259,8 @@
url:'/stats', type:"GET",
success: function(data){
if (!data || !data.total || !data.per_query)
return
return;
memgraphSec = memgraphSec + 1;
memgraphLine.push({x: memgraphSec, y: data.total});
data.per_query.forEach(function(speed, i) {