mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Revert "Ent 5553 dangerous behaviour dataserver lifo enabled"
This reverts commit 9541d3b56dfe193f0778980cd19ed74e8ecaea2f.
This commit is contained in:
parent
d88efc39da
commit
82255b154e
@ -1739,17 +1739,6 @@ sub pandora_process_module ($$$$$$$$$;$) {
|
|||||||
|
|
||||||
# Save module data. Async and log4x modules are not compressed.
|
# Save module data. Async and log4x modules are not compressed.
|
||||||
if ($module_type =~ m/(async)|(log4x)/ || $save == 1) {
|
if ($module_type =~ m/(async)|(log4x)/ || $save == 1) {
|
||||||
|
|
||||||
# If previous timestamp data changes, save the last one to avoid errors on SLA or graphs.
|
|
||||||
if($last_data_value ne $processed_data) {
|
|
||||||
|
|
||||||
my $last_data_timestamp = $agent_status->{'utimestamp'};
|
|
||||||
my $last_data_object;
|
|
||||||
|
|
||||||
$last_data_object->{'data'} = $last_data_value;
|
|
||||||
|
|
||||||
save_module_data ($last_data_object, $module, $module_type, $last_data_timestamp, $dbh);
|
|
||||||
}
|
|
||||||
save_module_data ($data_object, $module, $module_type, $utimestamp, $dbh);
|
save_module_data ($data_object, $module, $module_type, $utimestamp, $dbh);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user