MCPcopy Create free account
hub / github.com/akash-network/provider / parseCPU

Function parseCPU

bidengine/shellscript.go:55–57  ·  view source on GitHub ↗
(res *rtypes.CPU)

Source from the content-addressed store, hash-verified

53}
54
55func parseCPU(res *rtypes.CPU) uint64 {
56 return res.Units.Val.Uint64()
57}
58
59func parseMemory(res *rtypes.Memory) uint64 {
60 return res.Quantity.Val.Uint64()

Callers 1

newDataForScriptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected