From 1d056eda98e5da922a8dac2dc230c889a47d2fd5 Mon Sep 17 00:00:00 2001 From: Ismo Vuorinen Date: Sun, 5 Oct 2025 14:47:11 +0300 Subject: [PATCH] chore(cr): benchmark/benchmark.go Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- benchmark/benchmark.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/benchmark/benchmark.go b/benchmark/benchmark.go index b2e908e..44e1dee 100644 --- a/benchmark/benchmark.go +++ b/benchmark/benchmark.go @@ -362,7 +362,7 @@ func PrintBenchmarkResult(result *BenchmarkResult) { if pauseTotalNs > math.MaxInt64 { pauseTotalNs = math.MaxInt64 } - pauseDuration := time.Duration(int64(pauseTotalNs)) // #nosec G115 -- overflow check above + pauseDuration := time.Duration(int64(pauseTotalNs)) // #nosec G115 -- safe conversion: overflow check performed above ensures value <= MaxInt64 fmt.Printf("GC Runs: %d (Pause: %v)\n", result.MemoryUsage.NumGC, pauseDuration) fmt.Printf("Goroutines: %d\n", result.CPUUsage.Goroutines) fmt.Println()