From 662baa0c02f39f4ea35ea90b4baacb2c75163eb3 Mon Sep 17 00:00:00 2001 From: Nikolay Sivko Date: Tue, 26 Aug 2014 15:20:19 +0400 Subject: [PATCH] fill DiskPartitionStat.Device on linux --- disk_linux.go | 1 + 1 file changed, 1 insertion(+) diff --git a/disk_linux.go b/disk_linux.go index db25b2cc6..907366a10 100644 --- a/disk_linux.go +++ b/disk_linux.go @@ -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],