Commit 0bec4ad7 authored by Christopher Alfeld's avatar Christopher Alfeld
Browse files

lindex now starts at 0.

parent c0d5e35b
...@@ -200,8 +200,8 @@ foreach $node (keys(%rvnodemap)) { ...@@ -200,8 +200,8 @@ foreach $node (keys(%rvnodemap)) {
$lindex = 0; $lindex = 0;
foreach $dest (@sortdests) { foreach $dest (@sortdests) {
($dest,$ip) = @$dest; ($dest,$ip) = @$dest;
$lindex++;
$sth = $dbh->prepare("INSERT into virt_names (src_node_id,dest_node_id,lindex,ip) values (\"$node\",\"$dest\",$lindex,\"$ip\")"); $sth = $dbh->prepare("INSERT into virt_names (src_node_id,dest_node_id,lindex,ip) values (\"$node\",\"$dest\",$lindex,\"$ip\")");
$lindex++;
$sth->execute; $sth->execute;
$sth->finish; $sth->finish;
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment