Changeset 1925 for trunk/src/kmk/hash.c


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/hash.c

    r1915 r1925  
    488488           100.0 * (double) ht->ht_fill / (double) ht->ht_size);
    489489  fprintf (out_FILE, _("Rehash=%d, "), ht->ht_rehashes);
     490  MAKE_STATS(
    490491  fprintf (out_FILE, _("Collisions=%ld/%ld=%.0f%%"), ht->ht_collisions, ht->ht_lookups,
    491492           (ht->ht_lookups
    492493            ? (100.0 * (double) ht->ht_collisions / (double) ht->ht_lookups)
    493494            : 0));
     495  );
    494496}
    495497
Note: See TracChangeset for help on using the changeset viewer.