You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by gl...@apache.org on 2003/07/03 16:41:12 UTC
cvs commit: jakarta-tomcat-connectors/jk/tools/reports tomcat_trend.pl
glenn 2003/07/03 07:41:12
Modified: jk/tools/reports tomcat_trend.pl
Log:
Prevent script from failing on bad date format
Revision Changes Path
1.5 +7 -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.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- tomcat_trend.pl 14 Mar 2003 13:36:58 -0000 1.4
+++ tomcat_trend.pl 3 Jul 2003 14:41:12 -0000 1.5
@@ -179,6 +179,10 @@
($mon, $day, $time, $year) = (split /\s+/,$line)[1..4];
($hour, $min, $sec) = split /:/,$time;
$year =~ s/\]$//;
+ if( $day !~ /^\d+/ || $hour !~ /^\d+/ || $min!~ /^\d+/ || $sec !~ /^\d+/ ) {
+ print "Unknown log entry: $origline\n" unless $origline =~ /\.c /;
+ next;
+ }
# print "$mon $day $time $year $hour $min $sec\n";
$logtime = timelocal($sec,$min,$hour,$day,$MON{$mon},$year-1900);
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-tomcat-connectors/jk/tools/reports tomcat_trend.pl
Posted by Glenn Nielsen <gl...@mail.more.net>.
Henri Gomez wrote:
> glenn@apache.org a écrit :
>
>> glenn 2003/07/03 07:41:12
>>
>> Modified: jk/tools/reports tomcat_trend.pl
>> Log:
>> Prevent script from failing on bad date format
>> Revision Changes Path
>> 1.5 +7 -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.4
>> retrieving revision 1.5
>> diff -u -r1.4 -r1.5
>> --- tomcat_trend.pl 14 Mar 2003 13:36:58 -0000 1.4
>> +++ tomcat_trend.pl 3 Jul 2003 14:41:12 -0000 1.5
>> @@ -179,6 +179,10 @@
>> ($mon, $day, $time, $year) = (split /\s+/,$line)[1..4];
>> ($hour, $min, $sec) = split /:/,$time;
>> $year =~ s/\]$//;
>> + if( $day !~ /^\d+/ || $hour !~ /^\d+/ || $min!~ /^\d+/ ||
>> $sec !~ /^\d+/ ) {
>> + print "Unknown log entry: $origline\n" unless $origline =~
>> /\.c /;
>> + next;
>> + }
>> # print "$mon $day $time $year $hour $min $sec\n";
>> $logtime =
>> timelocal($sec,$min,$hour,$day,$MON{$mon},$year-1900);
>>
>
>
>
> Will it be included in JK 1.2.5 release ?
>
Yeah, I'll regenerate the source dist when everyone has finished their
testing and we have a VOTE to do the mod_jk 1.2.5 release.
Glenn
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: cvs commit: jakarta-tomcat-connectors/jk/tools/reports tomcat_trend.pl
Posted by Henri Gomez <hg...@apache.org>.
glenn@apache.org a écrit :
> glenn 2003/07/03 07:41:12
>
> Modified: jk/tools/reports tomcat_trend.pl
> Log:
> Prevent script from failing on bad date format
>
> Revision Changes Path
> 1.5 +7 -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.4
> retrieving revision 1.5
> diff -u -r1.4 -r1.5
> --- tomcat_trend.pl 14 Mar 2003 13:36:58 -0000 1.4
> +++ tomcat_trend.pl 3 Jul 2003 14:41:12 -0000 1.5
> @@ -179,6 +179,10 @@
> ($mon, $day, $time, $year) = (split /\s+/,$line)[1..4];
> ($hour, $min, $sec) = split /:/,$time;
> $year =~ s/\]$//;
> + if( $day !~ /^\d+/ || $hour !~ /^\d+/ || $min!~ /^\d+/ || $sec !~ /^\d+/ ) {
> + print "Unknown log entry: $origline\n" unless $origline =~ /\.c /;
> + next;
> + }
> # print "$mon $day $time $year $hour $min $sec\n";
> $logtime = timelocal($sec,$min,$hour,$day,$MON{$mon},$year-1900);
>
Will it be included in JK 1.2.5 release ?
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org