mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Check for negative time increments in inc modules.
(cherry picked from commit 91c72f83313cd39186f9e1a14c599d59fe5ae2f7)
This commit is contained in:
parent
ce9e337cb3
commit
dc2e47c1c7
@ -3320,7 +3320,7 @@ sub process_inc_data ($$$$$) {
|
||||
}
|
||||
|
||||
# Negative increment, reset inc data
|
||||
if ($data < $data_inc->{'datos'}) {
|
||||
if ($data < $data_inc->{'datos'} || $utimestamp < $data_inc->{'utimestamp'}) {
|
||||
db_do ($dbh, 'UPDATE tagente_datos_inc SET datos = ?, utimestamp = ? WHERE id_agente_modulo = ?', $data, $utimestamp, $module->{'id_agente_modulo'});
|
||||
logger($pa_config, "Discarding data and resetting counter for incremental module " . $module->{'nombre'} . "(module id " . $module->{'id_agente_modulo'} . ").", 10);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user