mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Added aggregate config option to Billing 95th percentile calculations (#10202)
* Added configuration options to aggregate input and output bits before making 95th percentile billing calculations * Changed aggregate to per-bill instead of global. Added config options for making aggregate the default selected option. Refactored out mres() calls in touched files. Changed to Config::get where appropriate. * Fixed documentation typo * Fixed scope of aggregate default config option to be under billing
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
*/
|
||||
|
||||
use LibreNMS\Authentication\LegacyAuth;
|
||||
use LibreNMS\Config;
|
||||
|
||||
if (LegacyAuth::user()->hasGlobalAdmin()) {
|
||||
require 'includes/html/javascript-interfacepicker.inc.php';
|
||||
@@ -73,6 +74,11 @@ if (LegacyAuth::user()->hasGlobalAdmin()) {
|
||||
|
||||
<?php
|
||||
|
||||
if (Config::get('billing.95th_default_agg') == 1) {
|
||||
$bill_data['dir_95th'] = 'agg';
|
||||
} else {
|
||||
$bill_data['dir_95th'] = 'in';
|
||||
}
|
||||
$bill_data['bill_type'] = 'cdr';
|
||||
$quota = array('select_gb' => ' selected');
|
||||
$cdr = array('select_mbps' => ' selected');
|
||||
|
Reference in New Issue
Block a user