Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for ParseBytes (0.1 sec)

  1. 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)
  2. 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)
  3. 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)
Back to top