2012-02-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_graph.php include/functions_visual_map.php: Improved module graphs on visual console. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5476 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
16ec9f1a8d
commit
883d4e7578
|
@ -1,3 +1,9 @@
|
|||
2012-02-02 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
|
||||
|
||||
* include/functions_graph.php
|
||||
include/functions_visual_map.php: Improved module graphs on visual
|
||||
console.
|
||||
|
||||
2012-02-02 Sancho Lerena <slerena@artica.es>
|
||||
|
||||
* config_process.php: Updated build.
|
||||
|
|
|
@ -89,7 +89,7 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
|
|||
$previous_data['utimestamp'] = $datelimit;
|
||||
array_unshift ($data, $previous_data);
|
||||
}
|
||||
|
||||
|
||||
// Get next data
|
||||
$nextData = modules_get_next_data ($agent_module_id, $date);
|
||||
if ($nextData !== false) {
|
||||
|
@ -204,13 +204,13 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
|
|||
$time_format = 'H:i';
|
||||
}
|
||||
elseif ($period < 1296000) {
|
||||
$time_format = 'M d H:i';
|
||||
$time_format = "M \nd H:i";
|
||||
}
|
||||
elseif ($period < 2592000) {
|
||||
$time_format = 'M d H\h';
|
||||
$time_format = "M \nd H\h";
|
||||
}
|
||||
else {
|
||||
$time_format = 'M d H\h';
|
||||
$time_format = "M \nd H\h";
|
||||
}
|
||||
|
||||
$timestamp_short = date($time_format, $timestamp);
|
||||
|
@ -275,7 +275,7 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Return chart data and don't draw
|
||||
if ($return_data == 1) {
|
||||
return $chart;
|
||||
|
|
|
@ -123,7 +123,7 @@ function visual_map_print_item($layoutData) {
|
|||
break;
|
||||
case MODULE_GRAPH:
|
||||
$img = grafico_modulo_sparse($id_module, $period, 0, $width,
|
||||
$height, '', null, false, 0, false, 0, '', 0, 0, true, true);
|
||||
$height, '', null, false, 1, false, 0, '', 0, 0, true, true);
|
||||
$img = str_replace('>', 'class="image" id="image_' . $id . '" />', $img);
|
||||
|
||||
echo '<div id="' . $id . '" class="item module_graph" style="left: 0px; top: 0px; color: ' . $color . '; text-align: center; position: absolute; ' . $sizeStyle . ' margin-top: ' . $top . 'px; margin-left: ' . $left . 'px;">';
|
||||
|
@ -954,12 +954,12 @@ function visual_map_print_visual_map ($id_layout, $show_links = true, $draw_line
|
|||
|
||||
echo grafico_modulo_sparse ($layout_data['id_agente_modulo'], $layout_data['period'],
|
||||
false, ((integer)($proportion * $layout_data['width'])), ((integer)($proportion * $layout_data['height'])),
|
||||
'', null, false, 0, false, 0, '', 0, 0, true, true);
|
||||
'', null, false, 1, false, 0, '', 0, 0, true, true);
|
||||
}
|
||||
else {
|
||||
echo grafico_modulo_sparse ($layout_data['id_agente_modulo'], $layout_data['period'],
|
||||
false, $layout_data['width'], $layout_data['height'],
|
||||
'', null, false, 0, false, 0, '', 0, 0, true, true);
|
||||
'', null, false, 1, false, 0, '', 0, 0, true, true);
|
||||
}
|
||||
echo "</a>";
|
||||
echo "</div>";
|
||||
|
|
Loading…
Reference in New Issue