From owner-freebsd-isp Sun Oct 7 18:50: 6 2001 Delivered-To: freebsd-isp@freebsd.org Received: from femail4.sdc1.sfba.home.com (femail4.sdc1.sfba.home.com [24.0.95.84]) by hub.freebsd.org (Postfix) with ESMTP id F128B37B409 for ; Sun, 7 Oct 2001 18:49:54 -0700 (PDT) Received: from veager.jwweeks.com ([65.14.122.116]) by femail4.sdc1.sfba.home.com (InterMail vM.4.01.03.20 201-229-121-120-20010223) with ESMTP id <20011008014954.PFPS2835.femail4.sdc1.sfba.home.com@veager.jwweeks.com>; Sun, 7 Oct 2001 18:49:54 -0700 Date: Sun, 7 Oct 2001 21:49:52 -0400 (EDT) From: Jim Weeks X-Sender: jim@veager.jwweeks.com To: Michael Burns Cc: freebsd-isp@freebsd.org Subject: Re: Webalizer oddness In-Reply-To: <20011007230903.A95305@fasturl.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks for the diff, but I had already done the upgrade. The later version definitely fixes the problem. -- Jim Weeks On Sun, 7 Oct 2001, Michael Burns 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=((jdate(rec_day,rec_month,rec_year)-epoch)*1000000)+ > < (rec_hour*10000) + (rec_min*100) + rec_sec; > --- > > rec_tstamp=((jdate(rec_day,rec_month,rec_year)-epoch)*86400)+ > > (rec_hour*3600) + (rec_min*60) + rec_sec; > 4512,4513c4512,4513 > < cur_tstamp=((jdate(cur_day,cur_month,cur_year)-epoch)*1000000)+ > < (cur_hour*10000) + (cur_min*100) + cur_sec; > --- > > cur_tstamp=((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