X-Git-Url: http://gb7djk.dxcluster.net/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2FDXLogPrint.pm;h=c2434aba48f8f5eda22edc3c2c909e7371ffc095;hb=f0910da57e166acb22e83de4e4b771d175074c80;hp=6d37cb415d16ddfba84d481aa69055e881f653d2;hpb=ece0b001419b8e755540eaff4ce3a558fd7d939f;p=spider.git diff --git a/perl/DXLogPrint.pm b/perl/DXLogPrint.pm index 6d37cb41..c2434aba 100644 --- a/perl/DXLogPrint.pm +++ b/perl/DXLogPrint.pm @@ -27,7 +27,7 @@ sub print my $fcb = $DXLog::log; my $from = shift; my $to = shift; - my @date = Julian::unixtojm(shift); + my $jdate = $fcb->unixtoj(shift); my $pattern = shift; my $who = uc shift; my $search; @@ -67,7 +67,7 @@ sub print if ($search) { \$count++; next if \$count < $from; - push \@out, print_item(\$ref); + unshift \@out, print_item(\$ref); last if \$count >= \$to; # stop after n } } @@ -75,7 +75,7 @@ sub print $fcb->close; # close any open files - my $fh = $fcb->open(@date); + my $fh = $fcb->open($jdate); for ($count = 0; $count < $to; ) { my $ref; if ($fh) {