summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.org>2005-08-30 12:48:08 +0000
committerOlivier Blin <oblin@mandriva.org>2005-08-30 12:48:08 +0000
commit4347b965e9c570334fff9367fad2822f9219731b (patch)
treee71d3b370d1eb15713a5fa5c552517ff80169d2a
parent35e7203fc7d1841e78b490aac45390068b6c116e (diff)
downloaddrakx-4347b965e9c570334fff9367fad2822f9219731b.tar
drakx-4347b965e9c570334fff9367fad2822f9219731b.tar.gz
drakx-4347b965e9c570334fff9367fad2822f9219731b.tar.bz2
drakx-4347b965e9c570334fff9367fad2822f9219731b.tar.xz
drakx-4347b965e9c570334fff9367fad2822f9219731b.zip
fix metric parser
-rw-r--r--perl-install/network/tools.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perl-install/network/tools.pm b/perl-install/network/tools.pm
index 0c88cf055..0dcbcf515 100644
--- a/perl-install/network/tools.pm
+++ b/perl-install/network/tools.pm
@@ -239,7 +239,7 @@ sub get_routes() {
if (/^(\w+)\s+([0-9A-F]+)\s+([0-9A-F]+)\s+[0-9A-F]+\s+\d+\s+\d+\s+(\d+)\s+([0-9A-F]+)/) {
if (hex($2)) { $routes{$1}{network} = host_hex_to_dotted($2) }
elsif (hex($3)) { $routes{$1}{gateway} = host_hex_to_dotted($3) }
- elsif ($4) { $routes{$1}{metric} = $4 }
+ if ($4) { $routes{$1}{metric} = $4 }
}
}
#- TODO: handle IPv6 with /proc/net/ipv6_route