Developing lightweight computation at the DSG edge

Commit 768c18bd authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[monitor-assign] Clear missing TODO


Signed-off-by: Roger Pueyo Centelles's avatarRoger Pueyo Centelles <rpueyo@ac.upc.edu>
parent 3da01f78
......@@ -283,15 +283,22 @@ func updateLocalAssignationList() {
// The localAssign list may contain old devices, not in the CNML anymore;
// discard them.
for _, v := range localAssign {
var thisMon = false
if isDeviceInSliceByID(v.Device.ID, cnmlDevices) {
for _, w := range v.MonitorID {
if w == ID {
thisMon = true
break
}
}
}
if thisMon {
currlocalAssign = append(currlocalAssign, v)
} else {
oldlocalAssign = append(oldlocalAssign, v)
}
}
// TODO: also look for devices in localAssign NOT assigned to this monitor, which should never have happened
localAssign = currlocalAssign
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment