From owner-freebsd-isp Sun Oct 7 16: 8:58 2001 Delivered-To: freebsd-isp@freebsd.org Received: from athena.fasturl.net (athena.fasturl.net [209.32.216.150]) by hub.freebsd.org (Postfix) with ESMTP id 01ECE37B401 for ; Sun, 7 Oct 2001 16:08:55 -0700 (PDT) Received: by athena.fasturl.net (Postfix, from userid 1001) id 6ECDD66B07; Sun, 7 Oct 2001 23:09:03 +0000 (GMT) Date: Sun, 7 Oct 2001 23:09:03 +0000 From: Michael Burns To: Jim Weeks Cc: freebsd-isp@freebsd.org Subject: Re: Webalizer oddness Message-ID: <20011007230903.A95305@fasturl.net> References: <001a01c14f7f$e7587720$0a05a8c0@ooe.kmjeuro.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: ; from jim@siteplus.net on Sun, Oct 07, 2001 at 06:40:13PM -0400 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 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