fix did you forget to declare my $deleteLogByRowsSth?)

This commit is contained in:
Isaac Connor 2021-04-01 12:22:30 -04:00
parent 0e00cb0289
commit cc33718a2e
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ while (!$zm_terminate) {
my $logRows = $row->{Rows};
if ( $logRows > $Config{ZM_LOG_DATABASE_LIMIT} ) {
my $rows = zmDbDo('DELETE low_priority FROM `Logs` ORDER BY `TimeKey` ASC LIMIT ?', $logRows - $Config{ZM_LOG_DATABASE_LIMIT});
Debug('Deleted '.$deleteLogByRowsSth->rows().' log table entries by count') if defined $rows;
Debug('Deleted '.$rows.' log table entries by count') if defined $rows;
}
} else {
# Time of record