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

Commit

Permalink
Add comment referencing gopsutil issue
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Jul 18, 2018
1 parent 0cd59ba commit eb17f69
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/widgets/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit eb17f69

Please sign in to comment.