]> ruin.nu Git - ndwebbie.git/blobdiff - scripts/parsegalaxies.pl
Replace the retal cron job with a web page
[ndwebbie.git] / scripts / parsegalaxies.pl
index 95194be2c1ca94727c79d503b1267228fce9e5b4..0ba0f0cb160df372c08ed88ad182cc6ecb412e15 100755 (executable)
@@ -35,8 +35,6 @@ use ND::DB;
 
 our $dbh = ND::DB::DB();
 
-$ND::DBH = $dbh;
-
 my $tick = $ARGV[0];
 my $hour;
 $dbh->begin_work;
@@ -47,7 +45,7 @@ my @galaxies;
 if (@_ = $dumps->fetchrow){
        $_ = $_[0];
        $hour = (gmtime($_[1]))[2];
-       while (m/(\d+)\t(\d+)\t\"(?:.+)\"\t(\d+)\t(\d+)\t(\d+)\t(\d+)/g){
+       while (m/(\d+)\t(\d+)\t\"(?:.*)\"\t(\d+)\t(\d+)\t(\d+)\t(\d+)/g){
                push @galaxies,[$tick,$1,$2,$3,$4,$5,$6,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];
        }
 }