Skip to content

Commit

Permalink
lte
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed May 12, 2024
1 parent 5999ea6 commit 49f7a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/streamlog/streamlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ func shouldSampleQuery() bool {
} else if queryLogSampleRate >= 1 {
return true
}
return rand.Float64() < queryLogSampleRate
return rand.Float64() <= queryLogSampleRate
}

// ShouldEmitLog returns whether the log with the given SQL query
Expand Down

0 comments on commit 49f7a2b

Please sign in to comment.