From 0592d5730d184c615228d6c930c9ec96f96a840a Mon Sep 17 00:00:00 2001 From: timriker Date: Thu, 29 Dec 2011 03:40:46 +0000 Subject: [PATCH] string compare log rotate git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1918 c11ca15a-4712-0410-83d8-924469b57eb5 --- src/logger.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logger.pl b/src/logger.pl index 36400b3..ab5a416 100644 --- a/src/logger.pl +++ b/src/logger.pl @@ -409,7 +409,7 @@ sub status { my ( $day, $month, $year ) = ( gmtime $time )[ 3, 4, 5 ]; my $newlogDate = sprintf( '%04d/%02d%02d', $year + 1900, $month + 1, $day ); - if ( defined $logDate and $newlogDate != $logDate ) { + if ( defined $logDate and $newlogDate ne $logDate ) { &closeLog(); &processLog( $file{log} ); &openLog(); -- 2.39.2