Developing lightweight computation at the DSG edge

Commit 7e38fcaa authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[monitor-assign] Make some printed messages more explicit


Signed-off-by: Roger Pueyo Centelles's avatarRoger Pueyo Centelles <rpueyo@ac.upc.edu>
parent 9ba3f14e
......@@ -100,14 +100,14 @@ func main() {
signal.Notify(signalChan, os.Interrupt)
go func() {
for _ = range signalChan {
fmt.Println("\nReceived an interrupt, deregistering and quitting...")
fmt.Println("\nReceived an interrupt, deregistering from the monitors list and quitting...")
deregisterMonitorInAntidote(ID)
cleanupDone <- true
}
}()
<-cleanupDone
fmt.Println("\nDone!")
fmt.Println("\nBye!")
}
// The initialize() function manages the execution parameters, sets timers, etc.
......@@ -346,6 +346,7 @@ func sanitizeAssignationsInDatabase() {
}
}
}
fmt.Println("Ended assignation list sanitization...")
}
func getCurrentMonitorsList() []string {
......@@ -359,7 +360,7 @@ func unassignMonitorFromDevice(monitorID string, deviceID int) bool {
func reassignDevs() {
fmt.Println("")
fmt.Println("Reassignation of devices")
fmt.Println(len(localAssign), "devices currently assigned (maximum:", maxDevs, "devices)")
fmt.Println(len(localAssign), "devices currently assigned to this monitor (maximum:", maxDevs, "devices)")
// fmt.Println(cnmlDevices)
// fmt.Println(globalAssign)
......@@ -420,8 +421,9 @@ func reassignDevs() {
break
}
}
fmt.Println(len(localAssign), "devices currently assigned")
fmt.Println(len(localAssign), "devices currently assigned to this monitor")
} else {
//TODO: unassign devices if len(localAssign) > maxDevs
fmt.Println("Not assigning any new device")
}
......
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