fill DiskPartitionStat.Device on linux

This commit is contained in:
Nikolay Sivko 2014-08-26 15:20:19 +04:00
parent e1e9f80bf0
commit 662baa0c02
1 changed files with 1 additions and 0 deletions

View File

@ -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],