fixed a bug in 'net.pm' when mathing the network interface

This commit is contained in:
Jordi Sanfeliu 2014-02-19 16:51:09 +01:00
parent 7124c6e89d
commit 095b4f3736
1 changed files with 1 additions and 1 deletions

View File

@ -192,7 +192,7 @@ sub net_update {
open(IN, "/proc/net/dev");
while(<IN>) {
my ($dev, $data) = split(':', $_);
if(trim($dev) eq /$nl[$n]/) {
if(trim($dev) eq $nl[$n]) {
($net_bytes_in[$n], $net_packs_in[$n], $net_error_in[$n], undef, undef, undef, undef, undef, $net_bytes_out[$n], $net_packs_out[$n], $net_error_out[$n]) = split(' ', $data);
last;
}