Skip to content

Commit

Permalink
[disk][darwin]: add issue URL
Browse files Browse the repository at this point in the history
  • Loading branch information
shirou committed Dec 18, 2022
1 parent c2fa2cb commit 8d22915
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions disk/disk_darwin.go
Expand Up @@ -27,6 +27,7 @@ func PartitionsWithContext(ctx context.Context, all bool) ([]PartitionStat, erro
// On 10.14, and possibly other OS versions, the actual count may
// be less than from the first call. Truncate to the returned count
// to prevent accessing uninitialized entries.
// https://github.com/shirou/gopsutil/issues/1390
fs = fs[:count]
for _, stat := range fs {
opts := []string{"rw"}
Expand Down

0 comments on commit 8d22915

Please sign in to comment.