mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-27 08:48:31 -04:00
quotes, spacing
This commit is contained in:
1 parent
cbe7924041
commit
98b49fb64d
2 files changed
+52
-54
No files matched your search
@@ -99,7 +99,7 @@ sub Execute {
|
||||
my $sql = $self->Sql();
|
||||
|
||||
if ( $self->{HasDiskPercent} ) {
|
||||
my $disk_percent = getDiskPercent( $$self{Storage} ? $$self{Storage}->Path() : () );
|
||||
my $disk_percent = getDiskPercent();
|
||||
$sql =~ s/zmDiskPercent/$disk_percent/g;
|
||||
}
|
||||
if ( $self->{HasDiskBlocks} ) {
|
||||
@@ -195,9 +195,6 @@ sub Sql {
|
||||
# This gets used later, I forget for what
|
||||
$$self{Server} = new ZoneMinder::Server( $temp_value );
|
||||
}
|
||||
} elsif ( $term->{attr} eq 'StorageId' ) {
|
||||
$value = "'$temp_value'";
|
||||
$$self{Storage} = new ZoneMinder::Storage( $temp_value );
|
||||
} elsif ( $term->{attr} eq 'Name'
|
||||
|| $term->{attr} eq 'Cause'
|
||||
|| $term->{attr} eq 'Notes'
|
||||
@@ -268,9 +265,9 @@ sub Sql {
|
||||
}
|
||||
# Don't do this, it prevents re-generation and concatenation.
|
||||
# If the file already exists, then the video won't be re-recreated
|
||||
#if ( $self->{AutoVideo} ) {
|
||||
#push @auto_terms, "E.Videoed = 0";
|
||||
#}
|
||||
if ( $self->{AutoVideo} ) {
|
||||
push @auto_terms, "E.Videoed = 0";
|
||||
}
|
||||
if ( $self->{AutoUpload} ) {
|
||||
push @auto_terms, "E.Uploaded = 0";
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user