Minor patch to wwwstat-1.0 and old2newlog

Roy T. Fielding (fielding@simplon.ICS.UCI.EDU)
Sun, 24 Apr 1994 06:34:31 -0700


Hello all wwwstat users,

If you are one of the few who picked up wwwstat-1.0 before or
oldlog2new before 6am PST (GMT -0700) this morning, you should apply
the following minor patch. The change is so that wwwstat and oldlog2new
correctly handle leading zeros in the day number of the new log format.
Note that this will not have any effect on wwwstat processing until your
1.2 server gets to the first of next month, and so old logs already
converted do not need to be fixed (unless you really want to).

To apply a patch, save the stuff between the "---" lines below to
a file called patch10to101.txt, move that file to the wwwstat-1.0
directory, and then do the command:

% patch < patch10to101.txt

If you do not have the patch program, just get a new copy of the distribution
from
http://www.ics.uci.edu/WebSoft/wwwstat/
or ftp://liege.ics.uci.edu/pub/arcadia/wwwstat/

patch10to101.txt is:
------------------------------------------------------------------------
*** ../save/wwwstat-1.0/Changes Sat Apr 23 01:23:12 1994
--- Changes Sun Apr 24 05:31:38 1994
***************
*** 14,19 ****
--- 14,24 ----
Easier installation procedure and default user config files.
A nice man file containing what is in the README/usage.

+ Version 1.0 patchlevel 1 April 24, 1994
+ Minor change: new log format uses leading zero in day number
+ field, so that is added to oldlog2new and blanked by space in
+ wwwstat.
+
Version 1.0 April 23, 1994
Now supports the NCSA httpd_1.2 "common" log format.
As a result, all attempts to figure out file size are gone
*** ../save/wwwstat-1.0/oldlog2new Thu Apr 21 19:04:28 1994
--- oldlog2new Sat Apr 23 23:48:24 1994
***************
*** 349,354 ****
--- 349,356 ----
substr($date,20, 4) .':'.
substr($date,11, 9) . $GMToffset;

+ $newdate =~ s/^ /0/;
+
#
# Now that we have categorized it, print it in the new format
#
*** ../save/wwwstat-1.0/wwwstat Sat Apr 23 00:26:58 1994
--- wwwstat Sun Apr 24 00:00:43 1994
***************
*** 754,759 ****
--- 754,760 ----
#
# Looks okay -- Now figure out when the request was made.
#
+ $timestamp =~ s/^0/ /; # Remove leading zero from day

$hour = substr($timestamp,12, 2);
$date = join(' ',substr($timestamp, 3, 3),
------------------------------------------------------------------------

....Roy Fielding ICS Grad Student, University of California, Irvine USA
(fielding@ics.uci.edu)
<A HREF="http://www.ics.uci.edu/dir/grad/Software/fielding">About Roy</A>