X-Git-Url: http://www.dxcluster.org/gitweb/gitweb.cgi?p=spider.git;a=blobdiff_plain;f=perl%2FDXDebug.pm;h=ecf4c12920e480ead3262efc9885c6cbdc03f9f1;hp=611df54775060f011de4ee0423c853d7126bc1c7;hb=b060a0a3ee72530aa3f10d453186a662b66d7efe;hpb=3d29b1a4d4aab997da2deff10470068601744530 diff --git a/perl/DXDebug.pm b/perl/DXDebug.pm index 611df547..ecf4c129 100644 --- a/perl/DXDebug.pm +++ b/perl/DXDebug.pm @@ -34,9 +34,9 @@ sub dbg for (@_) { s/\n$//og; } - my $str = atime . "@_" ; - print "$str\n"; - $fp->writenow($str); + print "@_\n" if defined \*STDOUT; + my $t = time; + $fp->writeunix($t, "$t^@_"); } }