This commit is contained in:
garnier-quentin 2019-03-06 17:08:07 +01:00
parent 782fa22f56
commit 18adeac13c
1 changed files with 18 additions and 19 deletions

View File

@ -58,8 +58,7 @@ sub new {
bless $self, $class;
$self->{version} = '1.0';
$options{options}->add_options(arguments =>
{
$options{options}->add_options(arguments => {
"hostname:s" => { name => 'hostname' },
"remote" => { name => 'remote' },
"ssh-option:s@" => { name => 'ssh_option' },
@ -75,7 +74,7 @@ sub new {
"regexp" => { name => 'use_regexp' },
"regexp-isensitive" => { name => 'use_regexpi' },
});
$self->{result} = {};
return $self;
}
@ -109,7 +108,7 @@ sub manage_selection {
next if (defined($self->{option_results}->{name}) && !defined($self->{option_results}->{use_regexp}) && !defined($self->{option_results}->{use_regexpi})
&& $mount ne $self->{option_results}->{name});
next if ($ifree !~ m/^\d+$/ || $iused !~ m/^\d+$/);
next if ($iused !~ m/^\d+$/);
$ipercent =~ s/%//g;
$self->{inodes}->{$mount} = { display => $mount, used => $ipercent };