Date: Sun, 7 Oct 2001 23:09:03 +0000 From: Michael Burns <michael@fasturl.net> To: Jim Weeks <jim@siteplus.net> Cc: freebsd-isp@freebsd.org Subject: Re: Webalizer oddness Message-ID: <20011007230903.A95305@fasturl.net> In-Reply-To: <Pine.BSF.4.21.0110071835100.9850-100000@veager.jwweeks.com>; from jim@siteplus.net on Sun, Oct 07, 2001 at 06:40:13PM -0400 References: <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
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011007230903.A95305>