Fixed resolution in netflow reports
Former-commit-id: 9900123e9753f9360085a1dff434bc668df7eb70
This commit is contained in:
parent
3d1f1f86ed
commit
c2c8287d3e
|
@ -110,7 +110,7 @@ $event_graph_validated_vs_unvalidated = false;
|
|||
|
||||
$netflow_filter = 0;
|
||||
$max_values = 0;
|
||||
$resolution = 0;
|
||||
$resolution = NETFLOW_RES_MEDD;
|
||||
|
||||
$lapse_calc = 0;
|
||||
$lapse = 300;
|
||||
|
@ -844,7 +844,11 @@ $class = 'databox filters';
|
|||
</td>
|
||||
<td style="">
|
||||
<?php
|
||||
html_print_extended_select_for_time('resolution', $resolution, '', '', '0', 10);
|
||||
html_print_select(
|
||||
netflow_resolution_select_params(),
|
||||
'resolution',
|
||||
$resolution
|
||||
);
|
||||
?>
|
||||
</td>
|
||||
</tr>
|
||||
|
|
|
@ -1951,3 +1951,21 @@ function netflow_print_check_version_error()
|
|||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns the array for netflow resolution select.
|
||||
*
|
||||
* @return array With all values.
|
||||
*/
|
||||
function netflow_resolution_select_params()
|
||||
{
|
||||
return [
|
||||
NETFLOW_RES_LOWD => __('Low'),
|
||||
NETFLOW_RES_MEDD => __('Medium'),
|
||||
NETFLOW_RES_HID => __('High'),
|
||||
NETFLOW_RES_ULTRAD => __('Ultra High'),
|
||||
NETFLOW_RES_HOURLY => __('Hourly'),
|
||||
NETFLOW_RES_DAILY => __('Daily'),
|
||||
];
|
||||
}
|
||||
|
|
|
@ -261,14 +261,7 @@ if (is_metaconsole()) {
|
|||
|
||||
echo '<td><b>'.__('Resolution').ui_print_help_tip(__('The interval will be divided in chunks the length of the resolution.'), true).'</b></td>';
|
||||
echo '<td>'.html_print_select(
|
||||
[
|
||||
NETFLOW_RES_LOWD => __('Low'),
|
||||
NETFLOW_RES_MEDD => __('Medium'),
|
||||
NETFLOW_RES_HID => __('High'),
|
||||
NETFLOW_RES_ULTRAD => __('Ultra High'),
|
||||
NETFLOW_RES_HOURLY => __('Hourly'),
|
||||
NETFLOW_RES_DAILY => __('Daily'),
|
||||
],
|
||||
netflow_resolution_select_params(),
|
||||
'interval_length',
|
||||
$interval_length,
|
||||
'',
|
||||
|
|
Loading…
Reference in New Issue