code.cloudfoundry.org/cli@v7.1.0+incompatible/cf/formatters/memoryLimit.go (about)

     1  package formatters
     2  
     3  import "strconv"
     4  
     5  func InstanceMemoryLimit(limit int64) string {
     6  	if limit == -1 {
     7  		return "unlimited"
     8  	}
     9  
    10  	return strconv.FormatInt(limit, 10) + "M"
    11  }