Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlesCheung96 committed Mar 14, 2023
1 parent be73ccc commit 72d5d14
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/util/memory_checker.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ func CheckMemoryUsage(limit float64) (bool, error) {
return stat.UsedPercent < limit, nil
}

// WaitMemoryAvailable waits until the memory usage is less than the limit.
func WaitMemoryAvailable(limit float64, timeout time.Duration) error {
start := time.Now()
for {
Expand Down

0 comments on commit 72d5d14

Please sign in to comment.