Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ParseBytes (0.19 sec)

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