1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-28 13:48:49 +08:00

Merge pull request #747 from tmm1/patch-3

Proper fix for unavailable /proc/filesystems
This commit is contained in:
shirou 2019-08-13 21:14:26 +09:00 committed by GitHub
commit ffb381dc5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -244,7 +244,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
} }
fs, err := getFileSystems() fs, err := getFileSystems()
if err != nil && all { if err != nil && !all {
return nil, err return nil, err
} }