mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-04-08 18:55:09 +02:00
Fixed the connection to node in metaconsole when show the data module dialog. TICKET: #1870
(cherry picked from commit eea8e0d8aec49aa43cd3a2f6491bbbcc66a998fc)
This commit is contained in:
parent
b797b900ce
commit
ea8662c7bc
@ -1555,7 +1555,9 @@ function modules_get_next_data ($id_agent_module, $utimestamp = 0, $string = 0)
|
||||
*
|
||||
* @return array The module value and the timestamp
|
||||
*/
|
||||
function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0, $trash=false, $conexion = false, $order = 'ASC') {
|
||||
function modules_get_agentmodule_data ($id_agent_module, $period,
|
||||
$date = 0, $trash=false, $conexion = false, $order = 'ASC') {
|
||||
|
||||
$module = db_get_row('tagente_modulo', 'id_agente_modulo',
|
||||
$id_agent_module);
|
||||
|
||||
@ -1580,7 +1582,7 @@ function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0, $tr
|
||||
WHERE id_agente_modulo = %d
|
||||
AND utimestamp > %d AND utimestamp <= %d
|
||||
ORDER BY utimestamp %s",
|
||||
$id_agent_module, $datelimit, $date, $order);
|
||||
$id_agent_module, $datelimit, $date, $order);
|
||||
break;
|
||||
//log4x
|
||||
case 24:
|
||||
@ -1589,7 +1591,7 @@ function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0, $tr
|
||||
WHERE id_agente_modulo = %d
|
||||
AND utimestamp > %d AND utimestamp <= %d
|
||||
ORDER BY utimestamp %s",
|
||||
$id_agent_module, $datelimit, $date, $order);
|
||||
$id_agent_module, $datelimit, $date, $order);
|
||||
break;
|
||||
default:
|
||||
$sql = sprintf ("SELECT datos AS data, utimestamp
|
||||
@ -1597,7 +1599,7 @@ function modules_get_agentmodule_data ($id_agent_module, $period, $date = 0, $tr
|
||||
WHERE id_agente_modulo = %d
|
||||
AND utimestamp > %d AND utimestamp <= %d
|
||||
ORDER BY utimestamp %s",
|
||||
$id_agent_module, $datelimit, $date, $order);
|
||||
$id_agent_module, $datelimit, $date, $order);
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user