cmd/mbf: disable threshold by default
All checks were successful
Test / Create distribution (push) Successful in 50s
Test / Sandbox (push) Successful in 2m44s
Test / ShareFS (push) Successful in 4m0s
Test / Hpkg (push) Successful in 4m30s
Test / Sandbox (race detector) (push) Successful in 5m4s
Test / Hakurei (race detector) (push) Successful in 6m11s
Test / Hakurei (push) Successful in 2m36s
Test / Flake checks (push) Successful in 1m43s
All checks were successful
Test / Create distribution (push) Successful in 50s
Test / Sandbox (push) Successful in 2m44s
Test / ShareFS (push) Successful in 4m0s
Test / Hpkg (push) Successful in 4m30s
Test / Sandbox (race detector) (push) Successful in 5m4s
Test / Hakurei (race detector) (push) Successful in 6m11s
Test / Hakurei (push) Successful in 2m36s
Test / Flake checks (push) Successful in 1m43s
This is not very useful. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
@@ -62,10 +62,13 @@ func main() {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
if cache, err = pkg.Open(ctx, msg, flagCures, base); err == nil {
|
if cache, err = pkg.Open(ctx, msg, flagCures, base); err == nil {
|
||||||
if flagTShift < 0 || flagTShift > 31 {
|
if flagTShift < 0 {
|
||||||
flagTShift = 31
|
cache.SetThreshold(0)
|
||||||
|
} else if flagTShift > 31 {
|
||||||
|
cache.SetThreshold(1 << 31)
|
||||||
|
} else {
|
||||||
|
cache.SetThreshold(1 << flagTShift)
|
||||||
}
|
}
|
||||||
cache.SetThreshold(1 << flagTShift)
|
|
||||||
}
|
}
|
||||||
return
|
return
|
||||||
}).Flag(
|
}).Flag(
|
||||||
@@ -82,7 +85,7 @@ func main() {
|
|||||||
"Directory to store cured artifacts",
|
"Directory to store cured artifacts",
|
||||||
).Flag(
|
).Flag(
|
||||||
&flagTShift,
|
&flagTShift,
|
||||||
"tshift", command.IntFlag(31),
|
"tshift", command.IntFlag(-1),
|
||||||
"Dependency graph size exponent, to the power of 2",
|
"Dependency graph size exponent, to the power of 2",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user