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

Commit

Permalink
Don't show Docker containers in Disk widget
Browse files Browse the repository at this point in the history
  • Loading branch information
cjbassi committed Dec 10, 2018
1 parent 2043837 commit 67e0fed
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widgets/disk.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,10 @@ func (self *Disk) update() {
if strings.HasPrefix(Part.Device, "/dev/loop") {
continue
}
// don't show docker container filesystems
if strings.HasPrefix(Part.Mountpoint, "/var/lib/docker/") {
continue
}
// check if partition doesn't already exist in our list
if _, ok := self.Partitions[Part.Device]; !ok {
self.Partitions[Part.Device] = &Partition{
Expand Down

0 comments on commit 67e0fed

Please sign in to comment.