Update disk_linux.go

This commit is contained in:
Aman Gupta 2017-05-18 23:38:11 -04:00 committed by GitHub
parent e346d3829a
commit a08587b348
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ var fsTypeMap = map[int64]string{
// physical devices only (e.g. hard disks, cd-rom drives, USB keys)
// and ignore all others (e.g. memory partitions such as /dev/shm)
func Partitions(all bool) ([]PartitionStat, error) {
filename := common.HostProc("mounts")
filename := common.HostProc("self/mounts")
lines, err := common.ReadLines(filename)
if err != nil {
return nil, err