@@ -73,6 +73,9 @@ discard block |
||
73 | 73 | return($cur_used/$since*$total); |
74 | 74 | } |
75 | 75 | |
76 | +/** |
|
77 | + * @param string $inout |
|
78 | + */ |
|
76 | 79 | function getValue($host, $port, $id, $inout) |
77 | 80 | { |
78 | 81 | global $config; |
@@ -221,6 +224,10 @@ discard block |
||
221 | 224 | return ($ptot); |
222 | 225 | }//end getPeriod() |
223 | 226 | |
227 | +/** |
|
228 | + * @param string $bill_id |
|
229 | + * @param string $bill_hist_id |
|
230 | + */ |
|
224 | 231 | function getBillingHistoryBitsGraphData($bill_id, $bill_hist_id, $reducefactor) |
225 | 232 | { |
226 | 233 | $histrow = dbFetchRow('SELECT UNIX_TIMESTAMP(bill_datefrom) as `from`, UNIX_TIMESTAMP(bill_dateto) AS `to`, rate_95th, rate_average, bill_type FROM bill_history WHERE bill_id = ? AND bill_hist_id = ?', array($bill_id, $bill_hist_id)); |
@@ -338,6 +345,9 @@ discard block |
||
338 | 345 | return $result; |
339 | 346 | }//end getBillingBitsGraphData |
340 | 347 | |
348 | +/** |
|
349 | + * @param string $bill_id |
|
350 | + */ |
|
341 | 351 | function getHistoricTransferGraphData($bill_id) |
342 | 352 | { |
343 | 353 | $i = '0'; |
@@ -392,6 +402,10 @@ discard block |
||
392 | 402 | ); |
393 | 403 | } |
394 | 404 | |
405 | +/** |
|
406 | + * @param string $bill_id |
|
407 | + * @param string $bill_hist_id |
|
408 | + */ |
|
395 | 409 | function getBillingBandwidthGraphData($bill_id, $bill_hist_id, $from, $to, $imgtype) |
396 | 410 | { |
397 | 411 | if (is_numeric($bill_hist_id)) { |