snapshot viewer fix

This commit is contained in:
fbsanchez 2018-10-30 18:20:10 +01:00
parent 94c008bc21
commit 39b6164526
2 changed files with 2 additions and 3 deletions

View File

@ -3849,8 +3849,7 @@ function ui_print_module_string_value($value, $id_agente_module,
'id_module' => $id_agente_module,
'last_data' => $value,
'interval' => $current_interval,
'module_name' => $module_name,
'timestamp' => db_get_value('timestamp', 'tagente_estado', 'id_agente_modulo', $id_agente_module)
'module_name' => $module_name
));
$salida = ui_get_snapshot_image($link, $is_snapshot) . '  ';
} else {

View File

@ -56,7 +56,7 @@ $utimestamp = get_parameter("timestamp", '');
if($utimestamp == '') {
// Retrieve last data
$row_state = db_get_row('tagente_estado', 'id_agente_modulo', $id);
$last_timestamp = $row_state['timestamp'];
$last_timestamp = date("Y-m-d H:i:s", $row_state['utimestamp']);
} else {
// Retrieve target data
$state = db_get_row('tagente_estado', 'id_agente_modulo', $id, array('id_agente'));