Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 08 Oct 2001 15:58:01 +0200
From:      Rickard =?iso-8859-1?Q?Svor=E9n?= <rickard@xpress.se>
To:        Michael Burns <michael@fasturl.net>
Cc:        freebsd-isp@freebsd.org
Subject:   Re: Webalizer oddness
Message-ID:  <4.3.2.7.2.20011008155730.0270dd18@mail.xpress.se>
In-Reply-To: <20011007230903.A95305@fasturl.net>
References:  <Pine.BSF.4.21.0110071835100.9850-100000@veager.jwweeks.com> <001a01c14f7f$e7587720$0a05a8c0@ooe.kmjeuro.com> <Pine.BSF.4.21.0110071835100.9850-100000@veager.jwweeks.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Having same trouble here, lucky me i have saved the source code for my=20
version (webalizer-2.00-10)
so i can make the changes an roll on...But i just want to make sure, the=20
changes apply only to webalizer.c ?
line

609 rec_tstamp=3D((jdate(rec_day,rec_month,rec_year)-epoch)*1000000)+
610 (rec_hour*10000) + (rec_min*100) + rec_sec;

to =3D=3D=3D>

609 rec_tstamp=3D((jdate(rec_day,rec_month,rec_year)-epoch)*86400)+
610 (rec_hour*2600) + (rec_min*100) + rec_sec;

Couldn=B4t find these in that file :

< cur_tstamp=3D((jdate(cur_day,cur_month,cur_year)-epoch)*1000000)+
< (cur_hour*10000) + (cur_min*100) + cur_sec;
---
 > cur_tstamp=3D((jdate(cur_day,cur_month,cur_year)-epoch)*86400)+
 > (cur_hour*3600) + (cur_min*60) + cur_sec;



--Best Regards, Rickard

Sorry for duplicates

At 23:09 2001-10-07 +0000, you wrote:
Webalizer versions prior to 2.01-06 have an int rollover bug in the
expression they use to compare timestamps, with the result that all
records after a certain October 2001 date are ignored. I fixed the
problem by patching old versions of webalizer and recompiling. You
could also upgrade to a current version.
A diff for 1.30 is below:

----BEGIN----
517,518c517,518
< rec_tstamp=3D((jdate(rec_day,rec_month,rec_year)-epoch)*1000000)+
< (rec_hour*10000) + (rec_min*100) + rec_sec;
---
 > rec_tstamp=3D((jdate(rec_day,rec_month,rec_year)-epoch)*86400)+
 > (rec_hour*3600) + (rec_min*60) + rec_sec;
4512,4513c4512,4513
< cur_tstamp=3D((jdate(cur_day,cur_month,cur_year)-epoch)*1000000)+
< (cur_hour*10000) + (cur_min*100) + cur_sec;
---
 > cur_tstamp=3D((jdate(cur_day,cur_month,cur_year)-epoch)*86400)+
 > (cur_hour*3600) + (cur_min*60) + cur_sec;
----END------

--
Michael Burns
Systems Administrator
Vener Net Inc.
michael@fasturl.net

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message
At 23:09 2001-10-07 +0000, you wrote:
>Webalizer versions prior to 2.01-06 have an int rollover bug in the
>expression they use to compare timestamps, with the result that all
>records after a certain October 2001 date are ignored. I fixed the
>problem by patching old versions of webalizer and recompiling. You
>could also upgrade to a current version.
>A diff for 1.30 is below:
>
>----BEGIN----
>517,518c517,518
><          rec_tstamp=3D((jdate(rec_day,rec_month,rec_year)-epoch)*1000000)=
+
><             (rec_hour*10000) + (rec_min*100) + rec_sec;
>---
> >          rec_tstamp=3D((jdate(rec_day,rec_month,rec_year)-epoch)*86400)+
> >             (rec_hour*3600) + (rec_min*60) + rec_sec;
>4512,4513c4512,4513
><    cur_tstamp=3D((jdate(cur_day,cur_month,cur_year)-epoch)*1000000)+
><       (cur_hour*10000) + (cur_min*100) + cur_sec;
>---
> >    cur_tstamp=3D((jdate(cur_day,cur_month,cur_year)-epoch)*86400)+
> >       (cur_hour*3600) + (cur_min*60) + cur_sec;
>----END------
>
>--
>Michael Burns
>Systems Administrator
>Vener Net Inc.
>michael@fasturl.net
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-isp" in the body of the message


-Mvh , Rickard

Xpress On-Line V=E4rmland AB
Rickard Svor=E9n
Bromsgatan 4
653 41 Karlstad
rickard.svoren@xpress.se
Tel : 054-521920
Fax : 054-525867
www.xpress.se


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4.3.2.7.2.20011008155730.0270dd18>