Skip to content

Commit ff24cd5

Browse files
committed
address PR feedback for nerdctl stats cmd bug fix
Signed-off-by: Cezar Rata <ceradev@amazon.com>
1 parent a3b7bf1 commit ff24cd5

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pkg/statsutil/stats_linux.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,12 @@ func SetCgroup2StatsFields(previousStats *ContainerStats, metrics *v2.Metrics, l
7474

7575
func getCgroupMemLimit(memLimit float64) float64 {
7676
if memLimit == float64(^uint64(0)) {
77-
return float64(getHostMemoryLimit())
77+
return float64(getHostMemLimit())
7878
}
7979
return memLimit
8080
}
8181

82-
func getHostMemoryLimit() uint64 {
82+
func getHostMemLimit() uint64 {
8383
virtualMemLimit, _ := mem.VirtualMemory()
8484
return virtualMemLimit.Total
8585
}

0 commit comments

Comments
 (0)