adjust to api change
This commit is contained in:
parent
ba40ec3b41
commit
8d652277a5
|
@ -11,7 +11,7 @@ print "Filesytem\tSize\tUsed\tAvail\tUse%\tMounted on\tType\n";
|
||||||
|
|
||||||
for my $fs (@$fslist) {
|
for my $fs (@$fslist) {
|
||||||
my $dirname = $fs->dir_name;
|
my $dirname = $fs->dir_name;
|
||||||
my $usage = $sigar->filesystemusage($dirname);
|
my $usage = $sigar->file_system_usage($dirname);
|
||||||
|
|
||||||
my $total = $usage->total;
|
my $total = $usage->total;
|
||||||
my $used = $total - $usage->free;
|
my $used = $total - $usage->free;
|
||||||
|
|
Loading…
Reference in New Issue