X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=perl%2Fwatchdbg;fp=perl%2Fwatchdbg;h=c1d6b172beb11a09f63e2c288c7596f152f770f4;hb=78efbb74096d56939a9efcfecd0c5b93ba9e9741;hp=7975529655809ac79b1e75447fb827f193f9c86f;hpb=b73aa9d811a4a1691f4ec2a9aaba0eb51f5ff62d;p=spider.git diff --git a/perl/watchdbg b/perl/watchdbg index 79755296..c1d6b172 100755 --- a/perl/watchdbg +++ b/perl/watchdbg @@ -31,7 +31,8 @@ use strict; my $fp = DXLog::new('debug', 'dat', 'd'); my @today = Julian::unixtoj(time()); my $fh = $fp->open(@today) or die $!; -my $nolines = shift if $ARGV[0] =~ /^\d+$/ || 1; +my $nolines = 1; +$nolines = shift if $ARGV[0] =~ /^\d+$/; my $exp = join '|', @ARGV; my @prev;