*** empty log message ***
This commit is contained in:
parent
adda296325
commit
8a186d38a1
|
@ -24,6 +24,9 @@
|
||||||
History
|
History
|
||||||
|
|
||||||
$Log: not supported by cvs2svn $
|
$Log: not supported by cvs2svn $
|
||||||
|
Revision 1.3 2004/07/02 17:40:30 ponchio
|
||||||
|
Debug.
|
||||||
|
|
||||||
Revision 1.2 2004/07/01 21:34:04 ponchio
|
Revision 1.2 2004/07/01 21:34:04 ponchio
|
||||||
Rehash bug.
|
Rehash bug.
|
||||||
|
|
||||||
|
@ -110,7 +113,6 @@ void MFHash::Insert(unsigned int key, unsigned int value, bool rehash) {
|
||||||
if(rehash) {
|
if(rehash) {
|
||||||
float ratio = space / (float)buffer.Size();
|
float ratio = space / (float)buffer.Size();
|
||||||
if(ratio < 0.4) { //need to resize
|
if(ratio < 0.4) { //need to resize
|
||||||
cerr << "rehash" << endl;
|
|
||||||
Resize(buffer.Size() * 2 + 3);
|
Resize(buffer.Size() * 2 + 3);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue