1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00
This commit is contained in:
Brian Ryner 2022-12-07 14:31:09 +11:00
parent c5e42b972f
commit 34da06e9b7

View File

@ -20,7 +20,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
return ret, err
}
fs := make([]unix.Statfs_t, count)
count, err := unix.Getfsstat(fs, unix.MNT_WAIT)
count, err = unix.Getfsstat(fs, unix.MNT_WAIT)
if err != nil {
return ret, err
}