updates.
authorPekka Riikonen <priikone@silcnet.org>
Fri, 18 May 2001 13:27:52 +0000 (13:27 +0000)
committerPekka Riikonen <priikone@silcnet.org>
Fri, 18 May 2001 13:27:52 +0000 (13:27 +0000)
lib/silccore/idcache.c

index 6c307d2a419633f23f2529aa72fcfdf9a3a11a1a..7e6aa02b7d02881a026e3e7e045e7a799425d184 100644 (file)
@@ -165,7 +165,7 @@ bool silc_idcache_add(SilcIDCache cache, unsigned char *data,
     silc_hash_table_add(cache->context_table, context, c);
 
   /* See whether we have time to rehash the tables */
-  if ((silc_hash_table_count(cache->id_table) * 2) >
+  if ((silc_hash_table_count(cache->id_table) / 2) >
       silc_hash_table_size(cache->id_table)) {
     silc_hash_table_rehash(cache->id_table, 0);
     silc_hash_table_rehash(cache->data_table, 0);