Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ParseBytes (0.26 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)
Back to top