Revision 6a15be3f
Added by Ermal Luçi over 10 years ago
usr/local/captiveportal/radius_accounting.inc | ||
---|---|---|
171 | 171 |
|
172 | 172 |
$retvalue = array(); |
173 | 173 |
$nas_mac = mac_format(get_interface_mac("wan")); |
174 |
$volume = getVolume($clientip, $clientmac); |
|
174 | 175 |
$clientmac = mac_format($clientmac); |
175 | 176 |
$nas_port = intval($ruleno); |
176 | 177 |
$radiusvendor = $config['captiveportal'][$cpzone]['radiusvendor'] ? $config['captiveportal'][$cpzone]['radiusvendor'] : null; |
177 | 178 |
$stop_time = (empty($stop_time)) ? time() : $stop_time; |
178 | 179 |
$session_time = $stop_time - $start_time; |
179 |
$volume = getVolume($clientip, $clientmac); |
|
180 | 180 |
$volume['input_bytes_radius'] = remainder($volume['input_bytes']); |
181 | 181 |
$volume['input_gigawords'] = gigawords($volume['input_bytes']); |
182 | 182 |
$volume['output_bytes_radius'] = remainder($volume['output_bytes']); |
Also available in: Unified diff
Ticket #4131 before formatting the mac extract the needed statistics from below