MCPcopy
hub / github.com/cloudfoundry/cli / FormattedInstanceMemoryLimit

Method FormattedInstanceMemoryLimit

cf/models/space_quota.go:30–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28}
29
30func (q SpaceQuota) FormattedInstanceMemoryLimit() string {
31 if q.InstanceMemoryLimit == -1 {
32 return T(UnlimitedDisplay)
33 }
34 return formatters.ByteSize(q.InstanceMemoryLimit * formatters.MEGABYTE)
35}
36
37func (q SpaceQuota) FormattedAppInstanceLimit() string {
38 appInstanceLimit := T(UnlimitedDisplay)

Callers 1

quotaStringMethod · 0.80

Calls 1

ByteSizeFunction · 0.92

Tested by

no test coverage detected