From: Marc Cromme Date: Wed, 3 May 2006 13:26:12 +0000 (+0000) Subject: added coment on magic number 34 which is sqrroot of 1000 X-Git-Tag: before.bug.529~144 X-Git-Url: http://sru.miketaylor.org.uk/cgi-bin?a=commitdiff_plain;h=10491ea09aa727918360fab60c2c3d6b58c70640;p=idzebra-moved-to-github.git added coment on magic number 34 which is sqrroot of 1000 --- diff --git a/index/rank1.c b/index/rank1.c index 2856b4f..5bfae86 100644 --- a/index/rank1.c +++ b/index/rank1.c @@ -1,4 +1,4 @@ -/* $Id: rank1.c,v 1.28 2006-05-03 09:31:26 marc Exp $ +/* $Id: rank1.c,v 1.29 2006-05-03 13:26:12 marc Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -130,7 +130,7 @@ static void *begin (struct zebra_register *reg, if (cp) si->entries[i].rank_weight = atoi (cp+3); else - si->entries[i].rank_weight = 34; + si->entries[i].rank_weight = 34; /* sqrroot of 1000 */ yaz_log(log_level, " i=%d weight=%d g="ZINT_FORMAT, i, si->entries[i].rank_weight, g); (si->no_rank_entries)++;