Skip to content

Commit

Permalink
fix exp delay in remove
Browse files Browse the repository at this point in the history
Signed-off-by: Jonathan Camp <github@jonathan.camp>
  • Loading branch information
kung-foo committed Aug 11, 2017
1 parent 6d5c608 commit ea0465f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ func defaults(root string) ([]Subsystem, error) {
// remove will remove a cgroup path handling EAGAIN and EBUSY errors and
// retrying the remove after a exp timeout
func remove(path string) error {
delay := 10 * time.Millisecond
for i := 0; i < 5; i++ {
delay := 10 * time.Millisecond
if i != 0 {
time.Sleep(delay)
delay *= 2
Expand Down

0 comments on commit ea0465f

Please sign in to comment.