Skip to content
Snippets Groups Projects

WIP: Old 4

Merged arshiam2 requested to merge old-4 into master
1 file
+ 2
2
Compare changes
  • Side-by-side
  • Inline
+ 2
2
@@ -93,13 +93,13 @@ socket.on("message", function(message, rinfo) {
@@ -93,13 +93,13 @@ socket.on("message", function(message, rinfo) {
surroundingNodes = []
surroundingNodes = []
if (i+1 > machines.length ) {
if (i+1 > machines.length ) {
surroundingNodes.push(machines[i+1 - machines.length])
surroundingNodes.push(machines[i+1 - machines.length - 1])
} else {
} else {
surroundingNodes.push(machines[i+1])
surroundingNodes.push(machines[i+1])
}
}
if (i+2 > machines.length ) {
if (i+2 > machines.length ) {
surroundingNodes.push(machines[i+2 - machines.length])
surroundingNodes.push(machines[i+2 - machines.length - 1])
} else {
} else {
surroundingNodes.push(machines[i+2])
surroundingNodes.push(machines[i+2])
}
}
Loading