head 1.2; access; symbols pkgsrc-2013Q2:1.2.0.6 pkgsrc-2013Q2-base:1.2 pkgsrc-2012Q4:1.2.0.4 pkgsrc-2012Q4-base:1.2 pkgsrc-2011Q4:1.2.0.2 pkgsrc-2011Q4-base:1.2 pkgsrc-2011Q3:1.1.0.22 pkgsrc-2011Q3-base:1.1 pkgsrc-2011Q2:1.1.0.20 pkgsrc-2011Q2-base:1.1 pkgsrc-2011Q1:1.1.0.18 pkgsrc-2011Q1-base:1.1 pkgsrc-2010Q4:1.1.0.16 pkgsrc-2010Q4-base:1.1 pkgsrc-2010Q3:1.1.0.14 pkgsrc-2010Q3-base:1.1 pkgsrc-2010Q2:1.1.0.12 pkgsrc-2010Q2-base:1.1 pkgsrc-2010Q1:1.1.0.10 pkgsrc-2010Q1-base:1.1 pkgsrc-2009Q4:1.1.0.8 pkgsrc-2009Q4-base:1.1 pkgsrc-2009Q3:1.1.0.6 pkgsrc-2009Q3-base:1.1 pkgsrc-2009Q2:1.1.0.4 pkgsrc-2009Q2-base:1.1 pkgsrc-2009Q1:1.1.0.2 pkgsrc-2009Q1-base:1.1; locks; strict; comment @# @; 1.2 date 2011.12.05.10.18.17; author wiz; state dead; branches; next 1.1; 1.1 date 2009.01.17.09.13.10; author adam; state Exp; branches; next ; desc @@ 1.2 log @Update htdig using htdig-devel. Update packages using it and bump their PKGREVISIONs. Remove htdig-devel. @ text @$NetBSD: patch-ab,v 1.1 2009/01/17 09:13:10 adam Exp $ --- htsearch/Display.cc.orig 2009-01-17 10:05:37.000000000 +0100 +++ htsearch/Display.cc @@@@ -1541,7 +1541,7 @@@@ Display::buildMatchList() // seconds in a 365 days year). The formula gives less weight // as the distance between the date document and the current time // increases (the absolute value is for documents with future date) -#define DATE_FACTOR(df, n, dd) ((df) * 100 / (1+(double)(abs((n) - (dd)) / 31536000))) +#define DATE_FACTOR(df, n, dd) ((df) * 100 / (1+(double)(abs((int)((n) - (dd))) / 31536000))) date_score = DATE_FACTOR(date_factor, now, thisRef->DocTime()); score += date_score; } @ 1.1 log @Fix building with 64-bit time_t @ text @d1 1 a1 1 $NetBSD$ @