From eb17f69606ea7d92721db5c6f902d817fc90b469 Mon Sep 17 00:00:00 2001 From: Caleb Bassi Date: Wed, 18 Jul 2018 09:19:09 -0700 Subject: [PATCH] Add comment referencing gopsutil issue --- src/widgets/disk.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/widgets/disk.go b/src/widgets/disk.go index 9ee766c..a6c8b44 100644 --- a/src/widgets/disk.go +++ b/src/widgets/disk.go @@ -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,