Fix logic update Server stats update line

This commit is contained in:
Isaac Connor 2018-01-15 19:23:59 -05:00
parent bb0974044b
commit f808d187c1
1 changed files with 1 additions and 1 deletions

View File

@ -297,7 +297,7 @@ sub run {
while( 1 ) { while( 1 ) {
if ( $Config{ZM_SERVER_ID} ) { if ( $Config{ZM_SERVER_ID} ) {
if ( $secs_count % 60 ) { if ( ! ( $secs_count % 60 ) ) {
$dbh = zmDbConnect() if ! $dbh->ping(); $dbh = zmDbConnect() if ! $dbh->ping();
my @cpuload = Sys::CpuLoad::load(); my @cpuload = Sys::CpuLoad::load();
dPrint( ZoneMinder::Logger::INFO, 'Updating Server record' ); dPrint( ZoneMinder::Logger::INFO, 'Updating Server record' );