From 192850ecba83b6d72896bb5654d7329fb46871ae Mon Sep 17 00:00:00 2001 From: Perry Mason Date: Fri, 11 Jun 2010 22:06:30 +0200 Subject: [vnstat2] fixing how real interfaces names are collected --- config/vnstat2/vnstat2.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'config') diff --git a/config/vnstat2/vnstat2.inc b/config/vnstat2/vnstat2.inc index ff8b84a2..efa2afd4 100644 --- a/config/vnstat2/vnstat2.inc +++ b/config/vnstat2/vnstat2.inc @@ -51,8 +51,7 @@ function vnstat_install_config() { $ifdescrs['opt' . $j] = $config['interfaces']['opt' . $j]['descr']; } foreach ($ifdescrs as $ifdescr => $ifname): - $ifinfo = get_interface_info($ifdescr); - $real_nic_names = convert_friendly_interface_to_real_interface_name($ifname); + $real_nic_names = get_real_interface($ifdescr); array_push($array_of_real_nic_names, $real_nic_names); endforeach; // Get already nic's assigned to vnstat -- cgit v1.2.3