fill DiskPartitionStat.Device on linux
This commit is contained in:
parent
e1e9f80bf0
commit
662baa0c02
|
@ -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],
|
||||
|
|
Loading…
Reference in New Issue