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

Proper fix for unavailable /proc/filesystems

This commit is contained in:
Aman Gupta 2019-08-12 13:20:11 -07:00
parent 903a879e03
commit 74d3cea10f

View File

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