Fixed the connection to node in metaconsole when show the data module dialog. TICKET: #1870
(cherry picked from commit eea8e0d8ae
)
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…
Reference in New Issue