From ff1d80a7c26fe37b204dcfac4f3716ff58ea3499 Mon Sep 17 00:00:00 2001 From: neingeist Date: Sat, 11 Oct 2014 18:00:19 +0200 Subject: [PATCH] ignore docker paths --- conky-disks | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conky-disks b/conky-disks index 47723f0..23416e5 100755 --- a/conky-disks +++ b/conky-disks @@ -13,6 +13,7 @@ my @ignoreformats = qw( debugfs securityfs swap iso9660 udf cgroup hugetlbfs mqueue pstore selinuxfs configfs ); +my @ignorepaths = (qr(/var/lib/docker/)); my $color_ok = "#78af78"; my $color_warn = "#ffff00"; @@ -56,6 +57,7 @@ for my $f (@filesystems) { my $format = $fs->format($f); next if grep { /^$format$/xsm } @ignoreformats; + next if grep { $mount_point =~ $_ } @ignorepaths; my $df = df($mount_point, 1024); # 1k blocks my $blocks = $df->{blocks};