aboutsummaryrefslogtreecommitdiffstats
path: root/config/vnstat2
diff options
context:
space:
mode:
authorPerry Mason <crazypark2@yahoo.dk>2010-06-11 23:33:25 +0200
committerPerry Mason <crazypark2@yahoo.dk>2010-06-11 23:33:25 +0200
commite8d8dc9cbe62c7f67bdc7c365399adc5832d0757 (patch)
treed9e2b199cf989be3ae9234259303bc8e1485fbe7 /config/vnstat2
parent347f48de7ca4aa5e820401b3341728a9ff1ad9bc (diff)
downloadpfsense-packages-e8d8dc9cbe62c7f67bdc7c365399adc5832d0757.tar.gz
pfsense-packages-e8d8dc9cbe62c7f67bdc7c365399adc5832d0757.tar.bz2
pfsense-packages-e8d8dc9cbe62c7f67bdc7c365399adc5832d0757.zip
[vnstat2] going convert
Diffstat (limited to 'config/vnstat2')
-rw-r--r--config/vnstat2/vnstat2.inc4
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);
}