Added percentile to custom graphs containers
This commit is contained in:
parent
292612f765
commit
70bf2dd49f
|
@ -234,7 +234,8 @@ if ($get_graphs){
|
|||
$height = 300;
|
||||
}
|
||||
$table .= "<div style='width: 90%'><h4>".$graph[0]['name']."</h4><hr></div>";
|
||||
$table .= graphic_combined_module($modules,
|
||||
$table .= graphic_combined_module(
|
||||
$modules,
|
||||
$weights,
|
||||
$value['time_lapse'],
|
||||
1000,
|
||||
|
@ -261,7 +262,7 @@ if ($get_graphs){
|
|||
$labels,
|
||||
false,
|
||||
false,
|
||||
null,
|
||||
true,
|
||||
false,
|
||||
false,
|
||||
$value['fullscale']
|
||||
|
|
|
@ -1117,15 +1117,42 @@ function graph_get_formatted_date($timestamp, $format1, $format2) {
|
|||
*
|
||||
* @return Mixed
|
||||
*/
|
||||
function graphic_combined_module ($module_list, $weight_list, $period,
|
||||
$width, $height, $title, $unit_name, $show_events = 0,
|
||||
$show_alerts = 0, $pure = 0, $stacked = 0, $date = 0,
|
||||
$only_image = false, $homeurl = '', $ttl = 1, $projection = false,
|
||||
$prediction_period = false, $background_color = 'white',
|
||||
$name_list = array(), $unit_list = array(), $show_last = true, $show_max = true,
|
||||
$show_min = true, $show_avg = true, $labels = array(), $dashboard = false,
|
||||
$vconsole = false, $percentil = null, $from_interface = false,
|
||||
$id_widget_dashboard=false, $fullscale = false, $summatory = 0, $average = 0, $modules_series = 0) {
|
||||
function graphic_combined_module (
|
||||
$module_list,
|
||||
$weight_list,
|
||||
$period,
|
||||
$width,
|
||||
$height,
|
||||
$title,
|
||||
$unit_name,
|
||||
$show_events = 0,
|
||||
$show_alerts = 0,
|
||||
$pure = 0,
|
||||
$stacked = 0,
|
||||
$date = 0,
|
||||
$only_image = false,
|
||||
$homeurl = '',
|
||||
$ttl = 1,
|
||||
$projection = false,
|
||||
$prediction_period = false,
|
||||
$background_color = 'white',
|
||||
$name_list = array(),
|
||||
$unit_list = array(),
|
||||
$show_last = true,
|
||||
$show_max = true,
|
||||
$show_min = true,
|
||||
$show_avg = true,
|
||||
$labels = array(),
|
||||
$dashboard = false,
|
||||
$vconsole = false,
|
||||
$percentil = null,
|
||||
$from_interface = false,
|
||||
$id_widget_dashboard=false,
|
||||
$fullscale = false,
|
||||
$summatory = 0,
|
||||
$average = 0,
|
||||
$modules_series = 0
|
||||
) {
|
||||
|
||||
global $config;
|
||||
global $graphic_type;
|
||||
|
|
Loading…
Reference in New Issue