The controller raises what the watchman says stopped moving, and takes a machine's silence from its presence (issue 1156)
This commit is contained in:
@@ -629,7 +629,7 @@ func heardMachines(d *doctor) map[string]bool {
|
||||
return out
|
||||
}
|
||||
for _, m := range f.machines {
|
||||
if !m.lastHeard.IsZero() && f.now.Sub(m.lastHeard) <= heartbeatBound(m.every) && !m.asleep() {
|
||||
if !m.lastHeard.IsZero() && !m.silent(f.now) && !m.asleep() {
|
||||
out[m.name] = true
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user