glenn       2005/02/07 06:49:55

  Modified:    jk/tools/reports tomcat_trend.pl
  Log:
  Fix a date bug
  
  Revision  Changes    Path
  1.9       +11 -3     
jakarta-tomcat-connectors/jk/tools/reports/tomcat_trend.pl
  
  Index: tomcat_trend.pl
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/jk/tools/reports/tomcat_trend.pl,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- tomcat_trend.pl   24 Feb 2004 08:42:04 -0000      1.8
  +++ tomcat_trend.pl   7 Feb 2005 14:49:55 -0000       1.9
  @@ -72,6 +72,14 @@
      @tail = `tail -1 $archivedir/global.data`;
      $startdate = (split /\s+/,$tail[0])[0];
      ($day, $mon, $year) = (localtime($startdate))[3..5];
  +   if ($day == 31) {
  +      $day=1;
  +      $month++;
  +      if ($month > 11) {
  +         $month=0;
  +         $year++;
  +      }
  +   }
      $startdate = timelocal(0,0,0,$day+1,$mon,$year);
   
   }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to