Only update db record if there is a change in diskspace
This commit is contained in:
parent
10bd7cbf7f
commit
ad8c775507
|
@ -320,8 +320,10 @@ sub checkFilter {
|
|||
|
||||
if ( $filter->{UpdateDiskSpace} ) {
|
||||
my $Event = new ZoneMinder::Event( $$event{Id}, $event );
|
||||
$Event->DiskSpace(undef);
|
||||
my $old_diskspace = $$Event{DiskSpace};
|
||||
if ( $old_diskspace != $Event->DiskSpace(undef) ) {
|
||||
$Event->save();
|
||||
}
|
||||
} # end if UpdateDiskSpace
|
||||
} # end foreach event
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue