diff options
-rw-r--r-- | internal/api/handlers.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/internal/api/handlers.go b/internal/api/handlers.go index 676f57f..5a31fa3 100644 --- a/internal/api/handlers.go +++ b/internal/api/handlers.go @@ -176,6 +176,11 @@ func init() { case <-tick1s.C: fmt.Println("1 s tick") case <-tick10s.C: + for i := range status.incidents { + runChance(0.05, func() { + status.incidents[i].Status = StatusOperational + }) + } runChance(1.0, func() { severity := SeverityMinor runChance(0.3, func() { |