Skip to content

Commit 9854c08

Browse files
committed
Minor: add comments to key fields of Resources
1 parent f620e47 commit 9854c08

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

internal/node/node.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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
5858
func (n *Resources) AvailableMemory() int64 {
5959
return n.totalMemory - n.busyPoolUsedMem
6060
}

0 commit comments

Comments
 (0)