Wrong "Totals for Summary Period" with "-sort req" option?
Stan.Hearn@ipst.edu
Thu, 02 Jan 1997 00:19:07 -0500
I am unable to determine if this is intentional or a bug.
My question is "Should the request dates be the earliest and latest entries
in the log file read?" or "Should the they be the dates of the least and
most number of requests?" When sorted in number of request order.
When I specify the option for sections to be sorted in request order "-sort
req", the "Totals for Summary Period" doesn't show the actual beginning
and ending date of the log file, but the date with the least reqs and the
date with the most reqs.
This makes me think that the log file that I'm running wwwstats on is
incomplete. (which is not true)
The wwwstat source shows that the date output is the first and last array
item:
if ($ReverseDateSort)
{
$earliest = $SortedDates[$#SortedDates];
$latest = $SortedDates[0];
}
else
{
$earliest = $SortedDates[0];
$latest = $SortedDates[$#SortedDates];
}
Example of output (I have removed all but four lines )(There were lines
with earlier dates):
Totals for Summary Period: Nov 18 1996 to Nov 29 1996
..
..
Total Transfers by Request Date
%Reqs %Byte Bytes Sent Requests Date
----- ----- ------------ -------- |------------
19.55 19.03 460274 191 | Nov 18 1996
16.68 16.12 390079 163 | Nov 25 1996
..
..
0.31 0.38 9288 3 | Nov 28 1996
0.31 0.38 9288 3 | Nov 29 1996
Thanks,
Stan Hearn