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 = '',
|
||||
$name_list = array(), $unit_list = array(), $show_last = true,
|
||||
$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;
|
||||
|
||||
|
@ -261,7 +261,8 @@ function custom_graphs_print($id_graph, $height, $width, $period,
|
|||
$vconsole,
|
||||
$percentil,
|
||||
$from_interface,
|
||||
$id_widget_dashboard);
|
||||
$id_widget_dashboard,
|
||||
$fullscale);
|
||||
|
||||
if ($return)
|
||||
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);
|
||||
$baseline = get_parameter ("baseline", 0);
|
||||
$show_percentil = get_parameter ("show_percentil", 0);
|
||||
$fullscale = get_parameter("fullscale", 0);
|
||||
|
||||
if ($zoom > 1) {
|
||||
$height = $height * ($zoom / 2.1);
|
||||
|
@ -200,7 +201,9 @@ $interface_traffic_modules = array(
|
|||
false,
|
||||
false,
|
||||
(($show_percentil)? $config['percentil'] : null),
|
||||
true);
|
||||
true,
|
||||
false,
|
||||
$fullscale);
|
||||
|
||||
echo '</div>';
|
||||
|
||||
|
@ -258,6 +261,12 @@ $interface_traffic_modules = array(
|
|||
$data[1] = html_print_checkbox ("show_percentil", 1, (bool) $show_percentil, true);
|
||||
$table->data[] = $data;
|
||||
$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[0] = __('Zoom factor');
|
||||
|
|
Loading…
Reference in New Issue