mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 16:55:05 +02:00
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;
|
$netflow_filter = 0;
|
||||||
$max_values = 0;
|
$max_values = 0;
|
||||||
$resolution = 0;
|
$resolution = NETFLOW_RES_MEDD;
|
||||||
|
|
||||||
$lapse_calc = 0;
|
$lapse_calc = 0;
|
||||||
$lapse = 300;
|
$lapse = 300;
|
||||||
@ -844,7 +844,11 @@ $class = 'databox filters';
|
|||||||
</td>
|
</td>
|
||||||
<td style="">
|
<td style="">
|
||||||
<?php
|
<?php
|
||||||
html_print_extended_select_for_time('resolution', $resolution, '', '', '0', 10);
|
html_print_select(
|
||||||
|
netflow_resolution_select_params(),
|
||||||
|
'resolution',
|
||||||
|
$resolution
|
||||||
|
);
|
||||||
?>
|
?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
@ -1951,3 +1951,21 @@ function netflow_print_check_version_error()
|
|||||||
return false;
|
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><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(
|
echo '<td>'.html_print_select(
|
||||||
[
|
netflow_resolution_select_params(),
|
||||||
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'),
|
|
||||||
],
|
|
||||||
'interval_length',
|
'interval_length',
|
||||||
$interval_length,
|
$interval_length,
|
||||||
'',
|
'',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user