Save data for 'quiet' modules.

(cherry picked from commit a484683b76)
This commit is contained in:
Ramon Novoa 2015-09-15 15:26:28 +02:00
parent 08da51a449
commit 156fb386ee
1 changed files with 1 additions and 1 deletions

View File

@ -1399,7 +1399,7 @@ sub pandora_process_module ($$$$$$$$$;$) {
$agent_status->{'datos'} = "";
}
my $save = ($module->{'quiet'} == 0 && $module->{'history_data'} == 1 && ($agent_status->{'datos'} ne $processed_data || $last_try < ($utimestamp - 86400))) ? 1 : 0;
my $save = ($module->{'history_data'} == 1 && ($agent_status->{'datos'} ne $processed_data || $last_try < ($utimestamp - 86400))) ? 1 : 0;
db_do ($dbh, 'UPDATE tagente_estado
SET datos = ?, estado = ?, last_status = ?, last_known_status = ?,