fsutil: fix a typo related to default concurrent goroutines working with files

s/265/256
This commit is contained in:
Phuong Le
2026-01-21 03:46:38 +07:00
committed by GitHub
parent 1c77ee9527
commit 1b7f0172d2

View File

@@ -11,10 +11,7 @@ var maxConcurrency = flag.Int("fs.maxConcurrency", getDefaultConcurrency(), "The
"on systems with small number of CPU cores; higher values may help reducing data ingestion latency on systems with high-latency storage such as NFS or Ceph")
func getDefaultConcurrency() int {
n := 16 * cgroup.AvailableCPUs()
if n > 265 {
n = 265
}
n := min(16*cgroup.AvailableCPUs(), 256)
return n
}