// Statistics fields in display order.
static struct {
enum stats stat;
- char *message;
+ const char *message;
format_fn *format_fn; // NULL -> use plain integer format
unsigned flags;
} stats_info[] = {
unsigned hit = direct + preprocessed;
unsigned miss = counters->data[STATS_TOCACHE];
unsigned total = hit + miss;
- double percent = total > 0 ? (100.0f * hit) / total : 0.0f;
+ double percent = total > 0 ? (100.0 * hit) / total : 0.0;
printf("cache hit rate %6.2f %%\n", percent);
}
}