mirror of https://github.com/cjbassi/gotop.git
Add comment referencing gopsutil issue
This commit is contained in:
parent
0cd59ba400
commit
eb17f69606
|
@ -58,6 +58,8 @@ func (self *Disk) update() {
|
|||
for _, Part := range Partitions {
|
||||
device := strings.Replace(Part.Device, "/dev/", "", -1)
|
||||
if _, ok := self.Partitions[device]; !ok {
|
||||
// https://github.com/shirou/gopsutil/issues/555
|
||||
// have to remove artifacts produced by gopsutil when there's a space in the mount path
|
||||
mountPoint := strings.Replace(Part.Mountpoint, "\\040", " ", -1)
|
||||
self.Partitions[device] = &Partition{
|
||||
Device: device,
|
||||
|
|
Loading…
Reference in New Issue