Fix logic update Server stats update line
This commit is contained in:
parent
bb0974044b
commit
f808d187c1
|
@ -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' );
|
||||||
|
|
Loading…
Reference in New Issue