Fixed inc modules on pandora manage --get_module_data

This commit is contained in:
fermin831 2017-10-06 10:55:18 +02:00
parent 1008912e94
commit 5b933977af

View File

@ -4535,13 +4535,6 @@ sub cli_module_get_data () {
AND utimestamp > (UNIX_TIMESTAMP(NOW()) - $interval)
ORDER BY utimestamp DESC");
}
elsif ($module_type =~ m/_inc$/) {
@data = get_db_rows ($dbh, "SELECT utimestamp, datos
FROM tagente_datos_inc
WHERE id_agente_modulo = $id_agent_module
AND utimestamp > (UNIX_TIMESTAMP(NOW()) - $interval)
ORDER BY utimestamp DESC");
}
else {
@data = get_db_rows ($dbh, "SELECT utimestamp, datos
FROM tagente_datos