Ignore:
Timestamp:
Oct 24, 2008, 5:32:21 AM (17 years ago)
Author:
bird
Message:

kmk: some stats adjustments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kmk/strcache2.c

    r1921 r1925  
    12661266
    12671267#ifdef STRCACHE2_USE_MASK
    1268   printf (_("%s  hash size = %u  mask = %#x  rehashed %u times  lookups = %lu\n"),
    1269           prefix, cache->hash_size, cache->hash_mask, rehashes, cache->lookup_count);
     1268  printf (_("%s  hash size = %u  mask = %#x  rehashed %u times"),
     1269          prefix, cache->hash_size, cache->hash_mask, rehashes);
    12701270#else
    1271   printf (_("%s  hash size = %u  div = %#x  rehashed %u times  lookups = %lu\n"),
    1272           prefix, cache->hash_size, cache->hash_div, rehashes, cache->lookup_count);
     1271  printf (_("%s  hash size = %u  div = %#x  rehashed %u times"),
     1272          prefix, cache->hash_size, cache->hash_div, rehashes);
    12731273#endif
    12741274  if (cache->lookup_count)
    1275     printf (_("%s  hash collisions 1st = %lu (%u%%)  2nd = %lu (%u%%)  3rd = %lu (%u%%)\n"),
     1275    printf (_("%s  lookups = %lu\n"
     1276              "%s  hash collisions 1st = %lu (%u%%)  2nd = %lu (%u%%)  3rd = %lu (%u%%)"),
     1277            prefix, cache->lookup_count,
    12761278            prefix,
    12771279            cache->collision_1st_count,  (unsigned int)((100.0 * cache->collision_1st_count) / cache->lookup_count),
    12781280            cache->collision_2nd_count,  (unsigned int)((100.0 * cache->collision_2nd_count) / cache->lookup_count),
    12791281            cache->collision_3rd_count,  (unsigned int)((100.0 * cache->collision_3rd_count) / cache->lookup_count));
    1280   printf (_("%s  hash insert collisions = %u (%u%%)\n"),
     1282  printf (_("\n%s  hash insert collisions = %u (%u%%)\n"),
    12811283          prefix, cache->collision_count,(unsigned int)((100.0 * cache->collision_count) / cache->count));
    12821284  printf (_("%s  %5u (%u%%) empty hash table slots\n"),
Note: See TracChangeset for help on using the changeset viewer.