Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Commit

Permalink
Fix #41
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Nov 15, 2018
1 parent d44be12 commit 5778167
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/widgets/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,12 @@ 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: Part.Mountpoint,
Mount: mountPoint,
}
}
}
Expand Down

0 comments on commit 5778167

Please sign in to comment.