X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=rset%2Frsprox.c;h=129e5210b1faec318c656464bef5ce7b84b3374c;hb=647212270fdb2030f6a1ab1f9880874f531847b2;hp=77aa4a7770dcdce13c451d43aadea32e0b905b91;hpb=d01bdeea950f667ea0ab4eaea212ac6d04f4d97a;p=idzebra-moved-to-github.git diff --git a/rset/rsprox.c b/rset/rsprox.c index 77aa4a7..129e521 100644 --- a/rset/rsprox.c +++ b/rset/rsprox.c @@ -1,4 +1,4 @@ -/* $Id: rsprox.c,v 1.24 2005-01-17 01:16:37 adam Exp $ +/* $Id: rsprox.c,v 1.26 2005-03-30 09:25:24 adam Exp $ Copyright (C) 1995-2005 Index Data ApS @@ -25,7 +25,7 @@ Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA #include #include -#include +#include #include #ifndef RSET_DEBUG @@ -245,7 +245,7 @@ static int r_forward (RSFD rfd, void *buf, TERMID *term, const void *untilbuf) for (i = 0; igetseq)(p->buf[1]) - seqno[i]; + zint diff = (*kctrl->getseq)(p->buf[1]) - seqno[i]; int excl = info->exclusion; if (!info->ordered && diff < 0) diff = -diff; @@ -333,7 +333,7 @@ static void r_pos (RSFD rfd, double *current, double *total) *total = 0; } else { r = scur/stot; - *current = p->hits; + *current = (double) p->hits; *total=*current/r ; } yaz_log(YLOG_DEBUG,"prox_pos: [%d] %0.1f/%0.1f= %0.4f ",