From 49f7a2b2826e40ae0ea088aa8d92dc0f6220fac6 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Sun, 12 May 2024 02:12:17 +0200 Subject: [PATCH] lte Signed-off-by: Tim Vaillancourt --- go/streamlog/streamlog.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/streamlog/streamlog.go b/go/streamlog/streamlog.go index d376e5b28ea..40d33b840b4 100644 --- a/go/streamlog/streamlog.go +++ b/go/streamlog/streamlog.go @@ -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