Commit eaa96f17 authored by Olav Kvittem's avatar Olav Kvittem
Browse files

bug used dragonlab database always

parent cc97fd65
Pipeline #140793 passed with stages
in 56 seconds
......@@ -49,7 +49,7 @@ if ( $q->{hits}{total}{value} > 0 ){
my $morning=`date --date "$date 00:00" +%s`;
chomp $morning;
my $select="select from_name,to_name from peers where end > $morning order by from_name,to_name";
my $cmd="sqlite3 /var/lib/microdep/mp-dragonlab/etc/microdep.db '$select'";
my $cmd="sqlite3 /var/lib/microdep/mp-$index/etc/microdep.db '$select'";
my $res=`$cmd`;
my $headline=1;
......@@ -58,7 +58,7 @@ if ( $q->{hits}{total}{value} > 0 ){
my $ft = $from . " " . $to;
if ( ! $ft{$ft} ){
if ( $headline > 0 ) {
print "\nMissing flow data against database\n";
print "\nMissing flow data against database for $index on $date\n";
$headline=0;
}
printf "%-25s %-25s\n", $from, $to;
......
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