cmd/mbf: disable threshold by default
Some checks failed
Test / Flake checks (push) Has been cancelled
Test / Sandbox (race detector) (push) Has been cancelled
Test / ShareFS (push) Has been cancelled
Test / Hakurei (push) Has been cancelled
Test / Hakurei (race detector) (push) Has been cancelled
Test / Hpkg (push) Has been cancelled
Test / Sandbox (push) Has been cancelled
Test / Create distribution (push) Has been cancelled

This is not very useful.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-26 00:05:01 +09:00
parent 8a86cf74ee
commit 8e982b6546

View File

@@ -62,10 +62,13 @@ func main() {
return
}
if cache, err = pkg.Open(ctx, msg, flagCures, base); err == nil {
if flagTShift < 0 || flagTShift > 31 {
flagTShift = 31
if flagTShift < 0 {
cache.SetThreshold(0)
} else if flagTShift > 31 {
cache.SetThreshold(1 << 31)
} else {
cache.SetThreshold(1 << flagTShift)
}
cache.SetThreshold(1 << flagTShift)
}
return
}).Flag(