Developing lightweight computation at the DSG edge

Commit 408ebb89 authored by Roger Pueyo Centelles's avatar Roger Pueyo Centelles
Browse files

[monitor-assign] Tiny improvements to verbose messages


Signed-off-by: Roger Pueyo Centelles's avatarRoger Pueyo Centelles <rpueyo@ac.upc.edu>
parent 2a8104a9
......@@ -439,7 +439,7 @@ func reassignDevs() {
// Calculate how many new devices can be assigned
toassign := int(math.Min(float64(int(math.Min(math.Min(float64(len(cnmlDevices)), float64(maxDevs))*float64(devsCheckInterval)/float64(fillingTime)+1, float64(len(cnmlDevices)-len(localAssign))))), float64(maxDevs-len(localAssign))))
fmt.Println("Assigning", toassign, "new devices")
fmt.Println("Assigning up to", toassign, "new devices")
// Create a list with all the unassigned devices
var unassignedDevices []cnml.DeviceIpv4sGraphserver
......@@ -450,7 +450,7 @@ func reassignDevs() {
}
fmt.Println(len(unassignedDevices), "devices unassigned")
fmt.Println("Picking", toassign, "nodes randomly")
fmt.Println("Picking", toassign, "devices randomly")
// Select some devices to self-assign, up to the previously calculated
// value in the "toassign" variable
......@@ -491,7 +491,7 @@ func reassignDevs() {
// Calculate how many new devices can be assigned
toassign := int(math.Min(float64(int(math.Min(math.Min(float64(len(cnmlDevices)), float64(maxDevs))*float64(devsCheckInterval)/float64(fillingTime)+1, float64(len(cnmlDevices)-len(localAssign))))), float64(maxDevs-len(localAssign))))
fmt.Println("Assigning", toassign, "new devices")
fmt.Println("Assigning up to", toassign, "new devices")
// Calculate which is the number of least monitors a device has
leastMons := 0
......@@ -515,7 +515,7 @@ func reassignDevs() {
}
fmt.Println(len(unassignedDevices), "devices unassigned")
fmt.Println("Picking", toassign, "nodes randomly")
fmt.Println("Picking up to", toassign, "devices randomly")
// Select some devices to self-assign, up to the previously calculated
// value in the "toassign" variable
......
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