summaryrefslogtreecommitdiff
path: root/bin/vdf
diff options
context:
space:
mode:
Diffstat (limited to 'bin/vdf')
-rwxr-xr-xbin/vdf6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/vdf b/bin/vdf
index 488ec33..439d4fd 100755
--- a/bin/vdf
+++ b/bin/vdf
@@ -159,7 +159,7 @@ sub show_df_png {
return;
}
-getopts('a:cfg', \%opts);
+getopts('Aa:cfg', \%opts);
$alpha = $opts{'a'} // 0;
open(my $mounts_fh, '<', '/proc/mounts');
@@ -181,7 +181,9 @@ while (my $line = <$mounts_fh>) {
}
close($mounts_fh);
-@mounts = grep { $_->[0] !~ qr{ ^ ( (root|tmp)fs | none ) $ }x } @mounts;
+if (not $opts{'A'}) {
+ @mounts = grep { $_->[0] !~ qr{ ^ ( (root|tmp)fs | none ) $ }x } @mounts;
+}
if ($opts{'c'}) {
show_df_console();