mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Bug #1711. Acct-x-Octets are always 0 in Captive Portal -> Radius acct messages.
This commit is contained in:
parent
3a4ca65e81
commit
ee0617fa75
@ -1412,14 +1412,14 @@ function getVolume($ip) {
|
||||
if ($ipfwin[0]) {
|
||||
$ipfwin = split(" ", $ipfwin[0]);
|
||||
$volume['input_pkts'] = $ipfwin[2];
|
||||
$volume['input_bytes'] = $ipfwin[3];
|
||||
$volume['input_bytes'] = $ipfwin[4];
|
||||
}
|
||||
|
||||
exec("/sbin/ipfw table 2 entrystats {$ip}", $ipfwout);
|
||||
if ($ipfwout[0]) {
|
||||
$ipfwout = split(" ", $ipfwout[0]);
|
||||
$volume['output_pkts'] = $ipfwout[2];
|
||||
$volume['output_bytes'] = $ipfwout[3];
|
||||
$volume['output_bytes'] = $ipfwout[4];
|
||||
}
|
||||
|
||||
return $volume;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user