File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -33,9 +33,9 @@ type Resources struct {
3333 sync.RWMutex
3434 totalMemory int64
3535 totalCPUs float64
36- busyPoolUsedMem int64
37- warmPoolUsedMem int64
38- usedCPUs float64
36+ busyPoolUsedMem int64 // amount of memory used by functions currently running
37+ warmPoolUsedMem int64 // amount of memory used by warm containers
38+ usedCPUs float64 // number of CPU used by functions currently running
3939 containerPools map [string ]* ContainerPool
4040}
4141
@@ -54,7 +54,7 @@ func (n *Resources) FreeMemory() int64 {
5454 return n .totalMemory - n .busyPoolUsedMem - n .warmPoolUsedMem
5555}
5656
57- // AvailableMemory returns amount of memory that is free or reclaimable from warm containers
57+ // AvailableMemory returns the amount of memory that is free or reclaimable from warm containers
5858func (n * Resources ) AvailableMemory () int64 {
5959 return n .totalMemory - n .busyPoolUsedMem
6060}
You can’t perform that action at this time.
0 commit comments