Skip to content

Commit

Permalink
change equal matcher ratio
Browse files Browse the repository at this point in the history
Signed-off-by: Ben Ye <[email protected]>
  • Loading branch information
yeya24 committed Mar 26, 2024
1 parent 93acb20 commit c2a9ca1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions walk.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ func (s *PromQLSmith) walkSelectors() []*labels.Matcher {
switch matchType {
case labels.MatchEqual:
val := s.rnd.Float64()
if val > 0.9 {
if val > 0.95 {
value = ""
} else if val > 0.8 {
} else if val > 0.9 {
value = "not_exist_value"
} else {
idx := s.rnd.Intn(len(s.labelValues[name]))
Expand Down

0 comments on commit c2a9ca1

Please sign in to comment.