From e8d8dc9cbe62c7f67bdc7c365399adc5832d0757 Mon Sep 17 00:00:00 2001 From: Perry Mason Date: Fri, 11 Jun 2010 23:33:25 +0200 Subject: [vnstat2] going convert --- config/vnstat2/vnstat2.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'config/vnstat2') 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); } -- cgit v1.2.3