Updating disk storage for FS/Erasure mode (#6081)

Updating the disk storage stats for FS/Erasure coded backend
master
Ashish Kumar Sinha 6 years ago committed by kannappanr
parent 78abe5234e
commit 0bbdd02a57
  1. 1
      cmd/fs-v1.go
  2. 1
      cmd/posix.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 {

@ -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 {

Loading…
Cancel
Save