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

Commit

Permalink
Fix bug when partition mountpoint has a space
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Jul 17, 2018
1 parent fa70da8 commit 8103dd3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/widgets/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ func (self *Disk) update() {
for _, Part := range Partitions {
device := strings.Replace(Part.Device, "/dev/", "", -1)
if _, ok := self.Partitions[device]; !ok {
mountPoint := strings.Replace(Part.Mountpoint, "\\040", " ", -1)
self.Partitions[device] = &Partition{
Device: device,
Mount: Part.Mountpoint,
Mount: mountPoint,
}
}
}
Expand Down

0 comments on commit 8103dd3

Please sign in to comment.