]> git.donarmstrong.com Git - infobot.git/commitdiff
string compare log rotate
authortimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 29 Dec 2011 03:40:46 +0000 (03:40 +0000)
committertimriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Thu, 29 Dec 2011 03:40:46 +0000 (03:40 +0000)
git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1918 c11ca15a-4712-0410-83d8-924469b57eb5

src/logger.pl

index 36400b3c0bcf24c70f8754779afc42c5208a405e..ab5a416d0ef48e86f345735d5f933d3d5f605bfd 100644 (file)
@@ -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();