Merge branch 'master' of github.com:shirou/gopsutil
This commit is contained in:
commit
5ed730e5d0
|
@ -40,7 +40,7 @@ func getTerminalMap() (map[uint64]string, error) {
|
||||||
for _, name := range termfiles {
|
for _, name := range termfiles {
|
||||||
stat := syscall.Stat_t{}
|
stat := syscall.Stat_t{}
|
||||||
syscall.Stat(name, &stat)
|
syscall.Stat(name, &stat)
|
||||||
rdev := stat.Rdev
|
rdev := uint64(stat.Rdev)
|
||||||
ret[rdev] = strings.Replace(name, "/dev", "", -1)
|
ret[rdev] = strings.Replace(name, "/dev", "", -1)
|
||||||
}
|
}
|
||||||
return ret, nil
|
return ret, nil
|
||||||
|
|
Loading…
Reference in New Issue