diff options
author | Ermal LUÇI <eri@pfsense.org> | 2015-05-01 21:32:14 +0200 |
---|---|---|
committer | Ermal LUÇI <eri@pfsense.org> | 2015-05-01 21:32:14 +0200 |
commit | f539af7623f85222cc04e41e39b1d90f415c6611 (patch) | |
tree | 1c3bd32063e6185e0ae6b6b824005261d84d958b /usr | |
parent | b514030704a73f186d90a793186cef0e15275957 (diff) | |
download | pfsense-f539af7623f85222cc04e41e39b1d90f415c6611.zip pfsense-f539af7623f85222cc04e41e39b1d90f415c6611.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 ed072cf..bb6ddc7 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']); |