diff --git a/pkg/internal/checkup/checkup.go b/pkg/internal/checkup/checkup.go index 6a603d0a..82cf7714 100644 --- a/pkg/internal/checkup/checkup.go +++ b/pkg/internal/checkup/checkup.go @@ -95,6 +95,10 @@ func (c *Checkup) Run(ctx context.Context, oslatLatencyThreshold time.Duration) return err } + if c.results.OslatMaxLatency > oslatLatencyThreshold { + return fmt.Errorf("oslat Max Latency measured %s exceeded the given threshold %s", + c.results.OslatMaxLatency.String(), oslatLatencyThreshold.String()) + } return nil }