Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LTV 1200 Display
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jake Read
LTV 1200 Display
Commits
0f567391
Commit
0f567391
authored
Nov 18, 2020
by
Jake Read
Browse files
Options
Downloads
Patches
Plain Diff
even slower
parent
f92e9293
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
code/client/ltv-client.js
+12
-13
12 additions, 13 deletions
code/client/ltv-client.js
with
12 additions
and
13 deletions
code/client/ltv-client.js
+
12
−
13
View file @
0f567391
...
@@ -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
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment