MCPcopy Create free account
hub / github.com/baidu/EasyFaaS / functionMemorySizeToBytes

Function functionMemorySizeToBytes

pkg/controller/rtctrl/runtime_dispatcher.go:453–455  ·  view source on GitHub ↗
(memSize int64)

Source from the content-addressed store, hash-verified

451}
452
453func functionMemorySizeToBytes(memSize int64) uint64 {
454 return uint64(memSize) * bytefmt.Megabyte
455}
456
457func (m *RuntimeManager) getMilliCPUsByMemory(memory uint64) int64 {
458 return int64(memory/m.resource.BaseMemory) * m.resource.Default.MilliCPUs

Callers 1

OccupyColdRuntimeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected