diff options
author | Caleb Bassi <calebjbassi@gmail.com> | 2018-07-18 09:19:09 -0700 |
---|---|---|
committer | Caleb Bassi <calebjbassi@gmail.com> | 2018-07-18 09:19:09 -0700 |
commit | eb17f69606ea7d92721db5c6f902d817fc90b469 (patch) | |
tree | 8026af6f2d79d023cbadef5a05ca3f1751bc8035 | |
parent | 0cd59ba4001d0819081f341b985b986958a9ebef (diff) |
Add comment referencing gopsutil issue
-rw-r--r-- | src/widgets/disk.go | 2 |
1 files changed, 2 insertions, 0 deletions
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, |