minor fix

This commit is contained in:
alejandro.campos@artica.es 2022-04-28 11:51:48 +02:00
parent c42b8c57c9
commit 5c029effdb
1 changed files with 5 additions and 0 deletions

View File

@ -583,6 +583,11 @@ sub process_xml_data ($$$$$) {
$module_data->{'data'} = $data->{'value'}; $module_data->{'data'} = $data->{'value'};
my $data_timestamp = get_tag_value ($data, 'timestamp', $timestamp); my $data_timestamp = get_tag_value ($data, 'timestamp', $timestamp);
if ($pa_config->{'use_xml_timestamp'} eq '0' && defined($timestamp)) {
$data_timestamp = $timestamp;
}
process_module_data ($pa_config, $module_data, $server_id, $agent, $module_name, process_module_data ($pa_config, $module_data, $server_id, $agent, $module_name,
$module_type, $interval, $data_timestamp, $dbh, $new_agent); $module_type, $interval, $data_timestamp, $dbh, $new_agent);
} }