projects
/
smlar.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bc5259
)
fix GiST estimation
author
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 14 May 2012 20:45:37 +0000
(
00:45
+0400)
committer
Teodor Sigaev
<teodor@sigaev.ru>
Mon, 14 May 2012 20:45:37 +0000
(
00:45
+0400)
smlar_gist.c
patch
|
blob
|
history
diff --git
a/smlar_gist.c
b/smlar_gist.c
index
ce9c6d8
..
3520e41
100644
(file)
--- a/
smlar_gist.c
+++ b/
smlar_gist.c
@@
-1210,7
+1210,7
@@
gsmlsign_consistent(PG_FUNCTION_ARGS)
for(i=0; i<s->nelems; i++)
count += GETBIT(sign, HASHVAL(s->hash[i]));
- if ( s->nelems == count ||
((double)count) / ((double)(s->nelems
)) >= GetSmlarLimit() )
+ if ( s->nelems == count ||
sqrt(((double)count) / ((double)(s->nelems)
)) >= GetSmlarLimit() )
res = true;
}
break;