From: Jan "Yenya" Kasprzak Date: Sat, 7 May 2011 21:26:42 +0000 (+0200) Subject: Fix for logfile rotating X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?p=slotcarman.git;a=commitdiff_plain;h=67ee3537a8d7b86703bc45d97c03d468494a1dcd Fix for logfile rotating addition (+) has lower precedence than concatenation (.). --- diff --git a/SCX/RaceParser.pm b/SCX/RaceParser.pm index 90ae735..e969a09 100644 --- a/SCX/RaceParser.pm +++ b/SCX/RaceParser.pm @@ -41,7 +41,7 @@ sub log_print { my $gen = 8; while ($gen) { rename $self->{logfile} . '.' . $gen . '.bz2', - $self->{logfile} . '.' . $gen+1 . '.bz2'; + $self->{logfile} . '.' . ($gen+1) . '.bz2'; $gen--; }