mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Fix getRates should return in and out average rates
/billing-calculate.php depends on these return values.
This commit is contained in:
@ -189,6 +189,8 @@ function getRates($bill_id, $datefrom, $dateto) {
|
||||
$data['total_data_in'] = $mtot_in;
|
||||
$data['total_data_out'] = $mtot_out;
|
||||
$data['rate_average'] = ($mtot / $ptot * 8);
|
||||
$data['rate_average_in'] = ($mtot_in / $ptot * 8);
|
||||
$data['rate_average_out'] = ($mtot_out / $ptot * 8);
|
||||
|
||||
// print_r($data);
|
||||
return ($data);
|
||||
|
Reference in New Issue
Block a user