- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for ParseBytes (0.17 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 }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Feb 01 21:53:26 GMT 2024 - 7.9K bytes - Viewed (0) -
cmd/server-rlimit.go
if ctx == nil { return nil } if ctx.IsSet("memlimit") { memlimit := ctx.String("memlimit") if memlimit == "" { memlimit = ctx.GlobalString("memlimit") } mlimit, err := humanize.ParseBytes(memlimit) if err != nil { return err } debug.SetMemoryLimit(int64(mlimit)) } return nil
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:06:57 GMT 2024 - 2.8K bytes - Viewed (0) -
internal/config/cache/cache.go
cfg.Enable = env.Get(EnvEnable, kvs.GetWithDefault(Enable, DefaultKVS)) == config.EnableOn if d := env.Get(EnvBlockSize, kvs.GetWithDefault(BlockSize, DefaultKVS)); d != "" { objectSize, err := humanize.ParseBytes(d) if err != nil { return cfg, err } cfg.BlockSize = int64(objectSize) } cfg.Endpoint = env.Get(EnvEndpoint, kvs.GetWithDefault(Endpoint, DefaultKVS))
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Jan 18 07:03:17 GMT 2024 - 5.6K 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 {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Thu Apr 04 12:04:40 GMT 2024 - 11.8K bytes - Viewed (0) -
cmd/common-main.go
} rootDiskSize := env.Get(config.EnvRootDriveThresholdSize, "") if rootDiskSize == "" { rootDiskSize = env.Get(config.EnvRootDiskThresholdSize, "") } if rootDiskSize != "" { size, err := humanize.ParseBytes(rootDiskSize) if err != nil { logger.Fatal(err, fmt.Sprintf("Invalid %s value in root drive threshold environment variable", rootDiskSize)) } globalRootDiskThreshold = size }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sat May 04 00:17:57 GMT 2024 - 35.8K bytes - Viewed (2) -
cmd/batch-handlers.go
BucketLookup: lookupStyle(r.Target.Path), }) if err != nil { batchLogIf(ctx, err) 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 {
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun May 05 16:56:21 GMT 2024 - 55.2K bytes - Viewed (0)