SWDEV-384602: Solved issues with multiple users.
Change-Id: Ie40addcbfdfce6ce45ceec8e38fc83d3d72882eb
This commit is contained in:
committed by
Ammar ELWazir
parent
34e62464ee
commit
4ec67854e5
@@ -58,7 +58,11 @@
|
||||
ctx.fill();
|
||||
}
|
||||
|
||||
function DrawCanvas(waitcnt) {
|
||||
var canvas_waitcnt = 0
|
||||
function DrawCanvas() {
|
||||
if (canvas_waitcnt == 0) return;
|
||||
var waitcnt = canvas_waitcnt
|
||||
|
||||
const canvas = document.getElementById("arrows");
|
||||
if (canvas.getContext) {
|
||||
const ctx = canvas.getContext("2d");
|
||||
@@ -98,7 +102,6 @@
|
||||
for(var s=smin; s<=smax; s++) {
|
||||
slots[s] += 1
|
||||
max_slots = Math.max(max_slots, waitcnt[w][1][l][1])
|
||||
console.log(waitcnt[w][2])
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -151,6 +154,8 @@
|
||||
}
|
||||
}
|
||||
|
||||
setInterval(DrawCanvas, 200)
|
||||
|
||||
function WaveButtonHtml(index) {
|
||||
return '<button class="btn" id="wv_button' + index + '" onclick="FetchNamesAndGather(' + index + ')">Wave'+index+'</button>\n'
|
||||
}
|
||||
@@ -617,7 +622,7 @@
|
||||
}
|
||||
})
|
||||
|
||||
DrawCanvas(data.wave.waitcnt)
|
||||
canvas_waitcnt = data.wave.waitcnt
|
||||
|
||||
/*var all_nodes = d3.select("#code")
|
||||
.selectAll("li")
|
||||
|
||||
Reference in New Issue
Block a user