Skip to content

Commit

Permalink
PKG Minotor:
Browse files Browse the repository at this point in the history
- fix minor bug with range of valid value for sli
  • Loading branch information
nabbar committed Mar 15, 2023
1 parent b31fd54 commit c1ff964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions monitor/pool/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -442,12 +442,12 @@ func (o *pool) collectMetricSLis(ctx context.Context, m libmet.Metric) {
} else if dw > 0 {
cur = 0
} else if up > 0 {
cur = 100
cur = 1
}

if cur < 0 {
cur = 0
} else if cur >= 100 {
} else if cur >= 1 {
cur = 0.999999999999
}

Expand Down

0 comments on commit c1ff964

Please sign in to comment.