always show currently unreachable routes

This commit is contained in:
lemmi 2020-01-23 08:01:49 +01:00
parent 30f06220a1
commit bd7116fff4
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ func (r route) Downtime(now time.Time) float64 {
}
func (r route) Noise(now time.Time) bool {
return r.Counter <= uint(now.Sub(startTime).Hours())+10 && r.Downtime(now) < 0.5
return r.UnreachableSince.IsZero() &&
r.Counter <= uint(now.Sub(startTime).Hours())+10 &&
r.Downtime(now) < 0.5
}
func (r route) String() string {