diff --git a/cmd/fs-v1.go b/cmd/fs-v1.go index 49a6a1afe..f34ef671f 100644 --- a/cmd/fs-v1.go +++ b/cmd/fs-v1.go @@ -201,6 +201,7 @@ func (fs *FSObjects) diskUsage(doneCh chan struct{}) { if err := getDiskUsage(context.Background(), fs.fsPath, usageFn); err != nil { return } + atomic.StoreInt32(&fs.usageRunning, 0) for { select { diff --git a/cmd/posix.go b/cmd/posix.go index a56355591..7bf2ba40e 100644 --- a/cmd/posix.go +++ b/cmd/posix.go @@ -359,6 +359,7 @@ func (s *posix) diskUsage(doneCh chan struct{}) { if err := getDiskUsage(context.Background(), s.diskPath, usageFn); err != nil { return } + atomic.StoreInt32(&s.usageRunning, 0) for { select {