Fixed problems with order data in custom graphs
This commit is contained in:
parent
ad4e3f3ccc
commit
093d9ad313
|
@ -1384,7 +1384,8 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||
FROM tagente_datos
|
||||
WHERE id_agente_modulo = ' . (int) $module .
|
||||
' AND utimestamp > ' . (int) $datelimit .
|
||||
' AND utimestamp < ' . (int) $date);
|
||||
' AND utimestamp < ' . (int) $date) .
|
||||
" ORDER BY utimestamp DESC";
|
||||
|
||||
if ($temp_data) {
|
||||
if (is_numeric($temp_data))
|
||||
|
@ -1416,7 +1417,8 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||
FROM tagente_datos
|
||||
WHERE id_agente_modulo = ' . (int) $module .
|
||||
' AND utimestamp > ' . (int) $datelimit .
|
||||
' AND utimestamp < ' . (int) $date);
|
||||
' AND utimestamp < ' . (int) $date) .
|
||||
" ORDER BY utimestamp DESC";
|
||||
|
||||
$agent_name = io_safe_output(
|
||||
modules_get_agentmodule_agent_name ($module));
|
||||
|
@ -1438,7 +1440,8 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||
FROM tagente_datos
|
||||
WHERE id_agente_modulo = ' . (int) $module .
|
||||
' AND utimestamp > ' . (int) $datelimit .
|
||||
' AND utimestamp < ' . (int) $date);
|
||||
' AND utimestamp < ' . (int) $date) .
|
||||
" ORDER BY utimestamp DESC";
|
||||
if ( $temp_data ){
|
||||
if (is_numeric($temp_data))
|
||||
$value = $temp_data;
|
||||
|
@ -1470,7 +1473,8 @@ function graphic_combined_module ($module_list, $weight_list, $period,
|
|||
FROM tagente_datos
|
||||
WHERE id_agente_modulo = ' . (int) $module .
|
||||
' AND utimestamp > ' . (int) $datelimit .
|
||||
' AND utimestamp < ' . (int) $date);
|
||||
' AND utimestamp < ' . (int) $date) .
|
||||
" ORDER BY utimestamp DESC";
|
||||
if ( $temp_data ) {
|
||||
if (is_numeric($temp_data))
|
||||
$value = $temp_data;
|
||||
|
|
Loading…
Reference in New Issue