cvs commit: apache-1.3/src/support log_server_status

1999-06-04 Thread coar
coar99/06/04 08:54:20

  Modified:src/support log_server_status
  Log:
{Sigh} %Y isn't universally accepted, so hack around it with
%y and some Y2K math.
  
  Revision  ChangesPath
  1.12  +5 -2  apache-1.3/src/support/log_server_status
  
  Index: log_server_status
  ===
  RCS file: /home/cvs/apache-1.3/src/support/log_server_status,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- log_server_status 1999/06/03 17:38:24 1.11
  +++ log_server_status 1999/06/04 15:54:19 1.12
  @@ -93,8 +93,11 @@
   ### Main
   
   {
  - $date=`date +%Y%m%d:%H%M%S`;
  - chop($date);
  +$year=`date +%y`;
  + chomp($year);
  + $year += ($year  70) ? 2000 : 1900;
  + $date = $year . `date +%m%d:%H%M%S`;
  + chomp($date);
($day,$time)=split(/:/,$date);
$res=tcp_connect($server,$port);
open(OUT,$wherelog$day);
  
  
  


cvs commit: apache-1.3/src/support log_server_status

1999-06-03 Thread coar
coar99/06/03 10:38:25

  Modified:src/support log_server_status
  Log:
Change to use four digits for the year.
  
  PR:   4523
  Submitted by: Simon Burr [EMAIL PROTECTED]
  Reviewed by:  Ken Coar
  
  Revision  ChangesPath
  1.11  +2 -2  apache-1.3/src/support/log_server_status
  
  Index: log_server_status
  ===
  RCS file: /home/cvs/apache-1.3/src/support/log_server_status,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- log_server_status 1999/01/01 19:05:34 1.10
  +++ log_server_status 1999/06/03 17:38:24 1.11
  @@ -67,7 +67,7 @@
   #
   require 'sys/socket.ph';
   
  -$wherelog = /var/log/graph/;  # Logs will be like /var/log/graph/960312
  +$wherelog = /var/log/graph/;  # Logs will be like /var/log/graph/19960312
   $server = localhost;  # Name of server, could be www.foo.com
   $port = 80;   # Port on server
   $request = /status/?auto; # Request to send
  @@ -93,7 +93,7 @@
   ### Main
   
   {
  - $date=`date +%y%m%d:%H%M%S`;
  + $date=`date +%Y%m%d:%H%M%S`;
chop($date);
($day,$time)=split(/:/,$date);
$res=tcp_connect($server,$port);