diff --git a/pandora_console/include/functions_netflow.php b/pandora_console/include/functions_netflow.php index aded2a30cc..40dbd99f75 100644 --- a/pandora_console/include/functions_netflow.php +++ b/pandora_console/include/functions_netflow.php @@ -1103,6 +1103,12 @@ function netflow_draw_item ($start_date, $end_date, $interval_length, $type, $fi $aggregate = $filter['aggregate']; $unit = $filter['output']; $interval = $end_date - $start_date; + if (defined ('METACONSOLE')) { + $width = 950; + } else { + $width = 850; + } + $height = 320; // Process item switch ($type) { @@ -1119,7 +1125,8 @@ function netflow_draw_item ($start_date, $end_date, $interval_length, $type, $fi if ($interval_length != 0) { $html .= " " . _('Resolution') . ": $interval_length " . __('seconds'); } - $html .= graph_netflow_aggregate_area ($data, $interval, 850, 320, netflow_format_unit ($unit)); + + $html .= graph_netflow_aggregate_area ($data, $interval, $width, $height, netflow_format_unit ($unit)); return $html; } else if ($output == 'PDF') { @@ -1128,7 +1135,7 @@ function netflow_draw_item ($start_date, $end_date, $interval_length, $type, $fi if ($interval_length != 0) { $html .= " " . _('Resolution') . ": $interval_length " . __('seconds'); } - $html .= graph_netflow_aggregate_area ($data, $interval, 850, 320, netflow_format_unit ($unit), 2, true); + $html .= graph_netflow_aggregate_area ($data, $interval, $width, $height, netflow_format_unit ($unit), 2, true); return $html; } else if ($output == 'XML') { diff --git a/pandora_console/operation/netflow/nf_live_view.php b/pandora_console/operation/netflow/nf_live_view.php index 21c1e762d1..e49a09d7cb 100644 --- a/pandora_console/operation/netflow/nf_live_view.php +++ b/pandora_console/operation/netflow/nf_live_view.php @@ -90,6 +90,7 @@ $time = get_parameter_post ('time', date (TIME_FORMAT, get_system_time ())); $connection_name = get_parameter('connection_name', ''); $interval_length = (int) get_parameter('interval_length', 300); $address_resolution = (int) get_parameter('address_resolution', $config['netflow_get_ip_hostname']); +$filter_selected = (int) get_parameter('filter_selected', 0); // Read buttons $draw = get_parameter('draw_button', ''); @@ -301,8 +302,9 @@ echo '