]> www.fi.muni.cz Git - slotcarman.git/commitdiff
Do not log when log file is being replayed
authorJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 7 May 2011 21:30:37 +0000 (23:30 +0200)
committerJan "Yenya" Kasprzak <kas@fi.muni.cz>
Sat, 7 May 2011 21:42:07 +0000 (23:42 +0200)
Do not log the same data again.

slotcarman

index 66a6d985fd7752a66e4b93f03dff0aaf88d26364..776e2ad8a6b6d59c42ed5c90c376785cff24bb63 100755 (executable)
@@ -32,7 +32,7 @@ my $logfile = 'log';
 
 my $parser = SCX::RaceParser->new({
        track => $track,
-       logfile => $logfile,
+       logfile => $opt{l} ? undef : $logfile,
 });
 
 my ($log_reader, $tty_reader);