From 04d3dca8ca940033088d61f9a15043ee9a6c6604 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Sat, 11 Aug 2018 16:34:43 -0700 Subject: [PATCH] Removed obsolete disk.Mountpoint fix Fixed upstream in gopsutil --- src/widgets/disk.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/widgets/disk.go b/src/widgets/disk.go index a6c8b44..94bbaba 100644 --- a/src/widgets/disk.go +++ b/src/widgets/disk.go @@ -58,12 +58,9 @@ 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, - Mount: mountPoint, + Mount: Part.Mountpoint, } } }