- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for ParseBytes (0.11 sec)
-
cmd/batch-job-common-types.go
func (b BatchJobSnowball) Validate() error { if *b.Batch <= 0 { return BatchJobYamlErr{ line: b.line, col: b.col, msg: "batch number should be non positive zero", } } _, err := humanize.ParseBytes(*b.SmallerThan) if err != nil { return BatchJobYamlErr{ line: b.line, col: b.col, msg: err.Error(), } } return nil }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Jun 11 03:13:30 UTC 2024 - 7.9K bytes - Viewed (0) -
cmd/common-main.go
if ctx.IsSet("memlimit") || ctx.GlobalIsSet("memlimit") { memlimit := ctx.String("memlimit") if memlimit == "" { memlimit = ctx.GlobalString("memlimit") } mlimit, err := humanize.ParseBytes(memlimit) if err != nil { return err } if mlimit > memAvailable { logger.Info("WARNING: maximum memory available (%s) smaller than specified --memlimit=%s, ignoring --memlimit value",
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Tue Sep 24 21:50:11 UTC 2024 - 31.7K bytes - Viewed (0) -
internal/config/storageclass/storage-class.go
return Config{}, err } cfg.Optimize = env.Get(OptimizeEnv, kvs.Get(Optimize)) inlineBlockStr := env.Get(InlineBlockEnv, kvs.Get(InlineBlock)) if inlineBlockStr != "" { inlineBlock, err := humanize.ParseBytes(inlineBlockStr) if err != nil { return cfg, err } if inlineBlock > 128*humanize.KiByte {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 12 12:24:04 UTC 2024 - 12.3K bytes - Viewed (0) -
cmd/batch-handlers.go
}) if err != nil { batchLogOnceIf(ctx, err, job.ID+"miniogo.New") return } // Already validated before arriving here smallerThan, _ := humanize.ParseBytes(*r.Source.Snowball.SmallerThan) batch := make([]ObjectInfo, 0, *r.Source.Snowball.Batch) writeFn := func(batch []ObjectInfo) { if len(batch) > 0 {
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Oct 18 15:32:09 UTC 2024 - 62.2K bytes - Viewed (0)