Merge pull request #1784 from majst01/misspelled-errors

Fix wrong error checking in fsHandler.go
This commit is contained in:
David Ashpole 2017-10-30 10:02:08 -07:00 committed by GitHub
commit 6d3841c68a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,10 +92,10 @@ func (fh *realFsHandler) update() error {
fh.Lock() fh.Lock()
defer fh.Unlock() defer fh.Unlock()
fh.lastUpdate = time.Now() fh.lastUpdate = time.Now()
if rootDiskErr == nil && fh.rootfs != "" { if rootInodeErr == nil && fh.rootfs != "" {
fh.usage.InodeUsage = inodeUsage fh.usage.InodeUsage = inodeUsage
} }
if rootInodeErr == nil && fh.rootfs != "" { if rootDiskErr == nil && fh.rootfs != "" {
fh.usage.TotalUsageBytes = baseUsage + extraDirUsage fh.usage.TotalUsageBytes = baseUsage + extraDirUsage
} }
if extraDiskErr == nil && fh.extraDir != "" { if extraDiskErr == nil && fh.extraDir != "" {