tip in graph interfaces
This commit is contained in:
parent
d34f34f4cb
commit
9337d33ceb
|
@ -164,7 +164,7 @@ function custom_graphs_print($id_graph, $height, $width, $period,
|
||||||
$background_color = 'white', $modules_param = array(), $homeurl = '',
|
$background_color = 'white', $modules_param = array(), $homeurl = '',
|
||||||
$name_list = array(), $unit_list = array(), $show_last = true,
|
$name_list = array(), $unit_list = array(), $show_last = true,
|
||||||
$show_max = true, $show_min = true, $show_avg = true, $ttl = 1,
|
$show_max = true, $show_min = true, $show_avg = true, $ttl = 1,
|
||||||
$dashboard = false, $vconsole = false, $percentil = null, $from_interface = false,$id_widget_dashboard=false) {
|
$dashboard = false, $vconsole = false, $percentil = null, $from_interface = false,$id_widget_dashboard=false, $fullscale = false) {
|
||||||
|
|
||||||
global $config;
|
global $config;
|
||||||
|
|
||||||
|
@ -261,7 +261,8 @@ function custom_graphs_print($id_graph, $height, $width, $period,
|
||||||
$vconsole,
|
$vconsole,
|
||||||
$percentil,
|
$percentil,
|
||||||
$from_interface,
|
$from_interface,
|
||||||
$id_widget_dashboard);
|
$id_widget_dashboard,
|
||||||
|
$fullscale);
|
||||||
|
|
||||||
if ($return)
|
if ($return)
|
||||||
return $output;
|
return $output;
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -150,6 +150,7 @@ $interface_traffic_modules = array(
|
||||||
$zoom = (int) get_parameter ("zoom", 1);
|
$zoom = (int) get_parameter ("zoom", 1);
|
||||||
$baseline = get_parameter ("baseline", 0);
|
$baseline = get_parameter ("baseline", 0);
|
||||||
$show_percentil = get_parameter ("show_percentil", 0);
|
$show_percentil = get_parameter ("show_percentil", 0);
|
||||||
|
$fullscale = get_parameter("fullscale", 0);
|
||||||
|
|
||||||
if ($zoom > 1) {
|
if ($zoom > 1) {
|
||||||
$height = $height * ($zoom / 2.1);
|
$height = $height * ($zoom / 2.1);
|
||||||
|
@ -200,7 +201,9 @@ $interface_traffic_modules = array(
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
(($show_percentil)? $config['percentil'] : null),
|
(($show_percentil)? $config['percentil'] : null),
|
||||||
true);
|
true,
|
||||||
|
false,
|
||||||
|
$fullscale);
|
||||||
|
|
||||||
echo '</div>';
|
echo '</div>';
|
||||||
|
|
||||||
|
@ -258,6 +261,12 @@ $interface_traffic_modules = array(
|
||||||
$data[1] = html_print_checkbox ("show_percentil", 1, (bool) $show_percentil, true);
|
$data[1] = html_print_checkbox ("show_percentil", 1, (bool) $show_percentil, true);
|
||||||
$table->data[] = $data;
|
$table->data[] = $data;
|
||||||
$table->rowclass[] ='';
|
$table->rowclass[] ='';
|
||||||
|
|
||||||
|
$data = array();
|
||||||
|
$data[0] = __('Full scale');
|
||||||
|
$data[1] = html_print_checkbox ("fullscale", 1, (bool) $fullscale, true);
|
||||||
|
$table->data[] = $data;
|
||||||
|
$table->rowclass[] ='';
|
||||||
|
|
||||||
$data = array();
|
$data = array();
|
||||||
$data[0] = __('Zoom factor');
|
$data[0] = __('Zoom factor');
|
||||||
|
|
Loading…
Reference in New Issue