Browse Source

We must now set the ratio when creating hash tables.

master
Richard Nyberg 16 years ago
parent
commit
966dd4f6e7
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      btpd/tlib.c

+ 2
- 2
btpd/tlib.c View File

@@ -309,8 +309,8 @@ tlib_init(void)
uint8_t hash[20];
char file[PATH_MAX];

m_numtbl = numtbl_create(num_test, num_hash);
m_hashtbl = hashtbl_create(id_test, id_hash);
m_numtbl = numtbl_create(1, num_test, num_hash);
m_hashtbl = hashtbl_create(1, id_test, id_hash);
if (m_numtbl == NULL || m_hashtbl == NULL)
btpd_err("Out of memory.\n");



Loading…
Cancel
Save