allow 0.1% downtime to be considered noise

This commit is contained in:
lemmi 2020-01-22 06:36:38 +01:00
parent 61da45d677
commit 8f0e46f37f
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ func (r route) Downtime(now time.Time) float64 {
}
func (r route) Noise(now time.Time) bool {
return r.Counter <= uint(now.Sub(startTime).Hours()) && r.Downtime(now) < 0.01
return r.Counter <= uint(now.Sub(startTime).Hours()) && r.Downtime(now) < 0.1
}
func (r route) String() string {