mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-22 22:44:24 -04:00
coments
This commit is contained in:
1 parent
7b8222f73b
commit
07704dd5d6
1 file changed
+5
-2
@@ -139,8 +139,10 @@ if ( ! EVENT_PATH ) {
|
||||
die;
|
||||
}
|
||||
|
||||
# In future, should not be neccessary wrt StorageAreas
|
||||
chdir( EVENT_PATH );
|
||||
|
||||
# SHould not be neccessary... but nice to get a local var. What if it fails?
|
||||
my $dbh = zmDbConnect();
|
||||
|
||||
if ( $filter_parm ) {
|
||||
@@ -149,7 +151,8 @@ if ( $filter_parm ) {
|
||||
Info( "Scanning for events\n" );
|
||||
}
|
||||
|
||||
if ( !$filter_parm ) {
|
||||
if ( ! $filter_parm ) {
|
||||
Debug("Sleeping due to start delay: " . START_DELAY . ' seconds...' );
|
||||
sleep( START_DELAY );
|
||||
}
|
||||
|
||||
@@ -182,7 +185,7 @@ sub getFilters {
|
||||
if ( $filter_name ) {
|
||||
$sql .= ' Name = ? and';
|
||||
} else {
|
||||
$sql .= ' Background = 1 and';
|
||||
$sql .= ' Background = 1 AND';
|
||||
}
|
||||
$sql .= '( AutoArchive = 1
|
||||
or AutoVideo = 1
|
||||
|
||||
Reference in new issue
Block a user