Skip to content
Snippets Groups Projects
Commit 0f567391 authored by Jake Read's avatar Jake Read
Browse files

even slower

parent f92e9293
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,14 @@ import { Plane, AutoPlot } from './panels.js' ...@@ -6,6 +6,14 @@ import { Plane, AutoPlot } from './panels.js'
let lastRecvdIndice = 0 let lastRecvdIndice = 0
// now we can setup some canvases,
let plane = new Plane()
let proxPresPlot = new AutoPlot(10, 10, 500, 200)
let xdcrFlowPlot = new AutoPlot(10, 220, 500, 200)
let volumePlot = new AutoPlot(10, 430, 500, 200)
// to test these systems, the client (us) will kickstart a new process // to test these systems, the client (us) will kickstart a new process
// on the server, and try to establish connection to it. // on the server, and try to establish connection to it.
console.log("making client-to-server request to start remote process,") console.log("making client-to-server request to start remote process,")
...@@ -33,12 +41,12 @@ jQuery.get('/startLocal/ltv-bridge.js', (res) => { ...@@ -33,12 +41,12 @@ jQuery.get('/startLocal/ltv-bridge.js', (res) => {
// can get loose with the indice for this hello-world, // can get loose with the indice for this hello-world,
for(let i = 0; i < msg.array.length; i ++){ for(let i = 0; i < msg.array.length; i ++){
proxPresPlot.pushPt([msg.array[i][0], msg.array[i][2]]) proxPresPlot.pushPt([msg.array[i][0], msg.array[i][2]])
xdcrFlowPlot.pushPt([msg.array[i][0], msg.array[i][3]]) //xdcrFlowPlot.pushPt([msg.array[i][0], msg.array[i][3]])
volumePlot.pushPt([msg.array[i][0], msg.array[i][4]]) //volumePlot.pushPt([msg.array[i][0], msg.array[i][4]])
} }
proxPresPlot.redraw() proxPresPlot.redraw()
xdcrFlowPlot.redraw() //xdcrFlowPlot.redraw()
volumePlot.redraw() //volumePlot.redraw()
} else { } else {
console.error('zero len array return') console.error('zero len array return')
} }
...@@ -68,12 +76,3 @@ jQuery.get('/startLocal/ltv-bridge.js', (res) => { ...@@ -68,12 +76,3 @@ jQuery.get('/startLocal/ltv-bridge.js', (res) => {
console.error('machine link not established', res) console.error('machine link not established', res)
} }
}) })
// now we can setup some canvases,
let plane = new Plane()
let proxPresPlot = new AutoPlot(10, 10, 500, 200)
let xdcrFlowPlot = new AutoPlot(10, 220, 500, 200)
let volumePlot = new AutoPlot(10, 430, 500, 200)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment