Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
55
func
parseCPU(res *rtypes.CPU) uint64 {
56
return
res.Units.Val.Uint64()
57
}
58
59
func
parseMemory(res *rtypes.Memory) uint64 {
60
return
res.Quantity.Val.Uint64()
Callers
1
newDataForScript
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected