Fix File=> File::Find
parent
e6c0add17e
commit
5c7203f2bb
|
@ -32,7 +32,7 @@ require ZoneMinder::Base;
|
||||||
require ZoneMinder::Object;
|
require ZoneMinder::Object;
|
||||||
require ZoneMinder::Storage;
|
require ZoneMinder::Storage;
|
||||||
require Date::Manip;
|
require Date::Manip;
|
||||||
require File;
|
require File::Find;
|
||||||
|
|
||||||
#our @ISA = qw(ZoneMinder::Object);
|
#our @ISA = qw(ZoneMinder::Object);
|
||||||
use parent qw(ZoneMinder::Object);
|
use parent qw(ZoneMinder::Object);
|
||||||
|
@ -365,7 +365,7 @@ sub DiskUsage {
|
||||||
}
|
}
|
||||||
if ( ! defined $_[0]{DiskUsage} ) {
|
if ( ! defined $_[0]{DiskUsage} ) {
|
||||||
my $size = 0;
|
my $size = 0;
|
||||||
File::find( sub { $size += -f $_ ? -s _ : 0 }, $_[0]->Path() );
|
File::Find::find( sub { $size += -f $_ ? -s _ : 0 }, $_[0]->Path() );
|
||||||
$_[0]{DiskUsage} = $size;
|
$_[0]{DiskUsage} = $size;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue