Developing lightweight computation at the DSG edge

Commit 4a553d5b authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[monitor-dump] Add all monitors to the list

Monitors with 0 devices assigned were not properly being taken into account for
the stats.
Signed-off-by: Roger Pueyo Centelles's avatarRoger Pueyo Centelles <>
parent 6c2d3746
......@@ -194,6 +194,12 @@ func startGlobalAssignTimer() {
dataToExport.Devices = devicesList
dataToExport.Monitors = monitorsList
for _, v := range monitorsList {
var thisMon JSONMonitorToDevices
thisMon.Monitor = v
dataToExport.Assignations.MonitorToDevices = append(dataToExport.Assignations.MonitorToDevices, thisMon)
for k, v := range globalAssign {
// fmt.Println(v.Device.ID, ":", v.MonitorID)
var newDTMA JSONDeviceToMonitorsAssignation
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