diff options
author | Perry Mason <crazypark2@yahoo.dk> | 2010-06-11 23:33:25 +0200 |
---|---|---|
committer | Perry Mason <crazypark2@yahoo.dk> | 2010-06-11 23:33:25 +0200 |
commit | e8d8dc9cbe62c7f67bdc7c365399adc5832d0757 (patch) | |
tree | d9e2b199cf989be3ae9234259303bc8e1485fbe7 | |
parent | 347f48de7ca4aa5e820401b3341728a9ff1ad9bc (diff) | |
download | pfsense-packages-e8d8dc9cbe62c7f67bdc7c365399adc5832d0757.tar.gz pfsense-packages-e8d8dc9cbe62c7f67bdc7c365399adc5832d0757.tar.bz2 pfsense-packages-e8d8dc9cbe62c7f67bdc7c365399adc5832d0757.zip |
[vnstat2] going convert
-rw-r--r-- | config/vnstat2/vnstat2.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/vnstat2/vnstat2.inc b/config/vnstat2/vnstat2.inc index 9bbf43ce..2ce25c9e 100644 --- a/config/vnstat2/vnstat2.inc +++ b/config/vnstat2/vnstat2.inc @@ -51,7 +51,7 @@ function vnstat_install_config() { $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; } foreach ($ifdescrs as $ifdescr => $ifname): - $real_nic_names = get_real_interface($ifdescr); + $real_nic_names = convert_friendly_interface_to_real_interface_name($ifdescr); array_push($array_of_real_nic_names, $real_nic_names); endforeach; // Get already nic's assigned to vnstat @@ -81,7 +81,7 @@ function vnstat_install_config() { $real_nic_names3 = get_real_interface($ifdescr); If ($real_nic_names3 == $vnstat_nic_out) { - $ifname_out = $ifdescr; + $ifname_out = convert_friendly_interface_to_friendly_descr($ifdescr); $iface_title_array_items = "\$iface_title['$vnstat_nic_out'] = '$ifname_out';\n"; array_push($iface_title_array_items2, $iface_title_array_items); } |