diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-05-01 21:32:37 +0200 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-05-01 21:32:37 +0200 |
commit | 6a15be3fb17980e9328bbfc94b0c1adb737314a0 (patch) | |
tree | b860f0544e64a40c86280e02ddfdbb22dd9c991f /usr | |
parent | 65ceb82d1e0727c0b0c2dcd3f8aa65277171ea33 (diff) | |
download | pfsense-6a15be3fb17980e9328bbfc94b0c1adb737314a0.zip pfsense-6a15be3fb17980e9328bbfc94b0c1adb737314a0.tar.gz |
Ticket #4131 before formatting the mac extract the needed statistics from below
Diffstat (limited to 'usr')
-rw-r--r-- | usr/local/captiveportal/radius_accounting.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/local/captiveportal/radius_accounting.inc b/usr/local/captiveportal/radius_accounting.inc index b583429..174d455 100644 --- a/usr/local/captiveportal/radius_accounting.inc +++ b/usr/local/captiveportal/radius_accounting.inc @@ -171,12 +171,12 @@ function RADIUS_ACCOUNTING_STOP($ruleno,$username,$sessionid,$start_time,$radius $retvalue = array(); $nas_mac = mac_format(get_interface_mac("wan")); + $volume = getVolume($clientip, $clientmac); $clientmac = mac_format($clientmac); $nas_port = intval($ruleno); $radiusvendor = $config['captiveportal'][$cpzone]['radiusvendor'] ? $config['captiveportal'][$cpzone]['radiusvendor'] : null; $stop_time = (empty($stop_time)) ? time() : $stop_time; $session_time = $stop_time - $start_time; - $volume = getVolume($clientip, $clientmac); $volume['input_bytes_radius'] = remainder($volume['input_bytes']); $volume['input_gigawords'] = gigawords($volume['input_bytes']); $volume['output_bytes_radius'] = remainder($volume['output_bytes']); |