Skip to content

Commit

Permalink
fill DiskPartitionStat.Device on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
def committed Aug 26, 2014
1 parent e1e9f80 commit 662baa0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions disk_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ func DiskPartitions(all bool) ([]DiskPartitionStat, error) {
for _, line := range lines {
fields := strings.Fields(line)
d := DiskPartitionStat{
Device: fields[0],
Mountpoint: fields[1],
Fstype: fields[2],
Opts: fields[3],
Expand Down

0 comments on commit 662baa0

Please sign in to comment.