Skip to content

Commit

Permalink
Add conditional to pod latency check
Browse files Browse the repository at this point in the history
Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 committed Jan 18, 2022
1 parent e8c3b24 commit 7e4c118
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pkg/measurements/pod_latency.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,9 @@ func (plq *podLatencyQuantiles) setQuantile(quantile float64, qValue int) {

func (p *podLatency) checkThreshold() int {
var rc int
log.Info("Evaluating latency thresholds")
if len(p.config.LatencyThresholds) > 0 {
log.Info("Evaluating latency thresholds")
}
for _, phase := range p.config.LatencyThresholds {
for _, pq := range podQuantiles {
if phase.ConditionType == pq.(podLatencyQuantiles).QuantileName {
Expand Down

0 comments on commit 7e4c118

Please sign in to comment.