take into account reserved space (#4978)
Co-authored-by: omercier <32134301+omercier@users.noreply.github.com>
This commit is contained in:
parent
8045d12d46
commit
25034afc23
|
@ -153,7 +153,7 @@ sub manage_selection {
|
||||||
my @lines = split /\n/, $stdout;
|
my @lines = split /\n/, $stdout;
|
||||||
foreach my $line (@lines) {
|
foreach my $line (@lines) {
|
||||||
next if ($line !~ /^(\S+)\s+(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\S+)\s+(.*)/);
|
next if ($line !~ /^(\S+)\s+(\S+)\s+(\d+)\s+(\d+)\s+(\d+)\s+(\S+)\s+(.*)/);
|
||||||
my ($fs, $type, $size, $used, $available, $percent, $mount) = ($1, $2, $3, $4, $5, $6, $7);
|
my ($fs, $type, $used, $available, $percent, $mount) = ($1, $2, $4, $5, $6, $7);
|
||||||
|
|
||||||
next if (defined($self->{option_results}->{filter_fs}) && $self->{option_results}->{filter_fs} ne '' &&
|
next if (defined($self->{option_results}->{filter_fs}) && $self->{option_results}->{filter_fs} ne '' &&
|
||||||
$fs !~ /$self->{option_results}->{filter_fs}/);
|
$fs !~ /$self->{option_results}->{filter_fs}/);
|
||||||
|
@ -170,9 +170,9 @@ sub manage_selection {
|
||||||
display => $mount,
|
display => $mount,
|
||||||
fs => $fs,
|
fs => $fs,
|
||||||
type => $type,
|
type => $type,
|
||||||
total => $size * 1024,
|
|
||||||
used => $used * 1024,
|
used => $used * 1024,
|
||||||
free => $available * 1024
|
free => $available * 1024,
|
||||||
|
total => ($used + $available) * 1024
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
--display-transform-dst
|
--display-transform-dst
|
||||||
--display-transform-src
|
--display-transform-src
|
||||||
|
--exclude-fs
|
||||||
|
--filter-fs
|
||||||
--filter-vdom
|
--filter-vdom
|
||||||
--force-counters32
|
--force-counters32
|
||||||
--force-counters64
|
--force-counters64
|
||||||
|
@ -13,6 +15,7 @@ ADSL
|
||||||
Centreon
|
Centreon
|
||||||
Datacore
|
Datacore
|
||||||
deltaps
|
deltaps
|
||||||
|
df
|
||||||
eth
|
eth
|
||||||
Fortigate
|
Fortigate
|
||||||
Fortinet
|
Fortinet
|
||||||
|
|
Loading…
Reference in New Issue