Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for ParseBytes (0.18 sec)

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