Fix getRates should return in and out average rates

/billing-calculate.php depends on these return values.
This commit is contained in:
Zollner Robert
2015-11-02 03:48:12 +02:00
parent 6e013c5a27
commit 0a48338fe0

View File

@ -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);