void diskbase_debug(dbref player) { double ph, pm; ph = propcache_hits; pm = propcache_misses; notify(player, "Cache info:"); notifyf(player, "Propcache hit ratio: %.3f%% (%ld hits / %ld fetches)", (100.0 * ph / (ph + pm)), propcache_hits, propcache_misses); report_fetchstats(player); notifyf(player, "PropLoaded count: %d", proploaded_Q.count); notifyf(player, "PropPriority count: %d", proppri_Q.count); notifyf(player, "PropChanged count: %d", propchanged_Q.count); report_cachestats(player); notify(player, "Done."); }
void diskbase_debug(dbref player) { char buf[BUFFER_LEN]; double ph, pm; ph = propcache_hits; pm = propcache_misses; snprintf(buf, sizeof(buf), "Propcache hit ratio: %.3f%% (%ld hits / %ld fetches)", (100.0 * ph / (ph + pm)), propcache_hits, propcache_misses); notify(player, buf); report_fetchstats(player); notify_fmt(player, "PropLoaded count: %d", proploaded_Q.count); notify_fmt(player, "PropPriority count: %d", proppri_Q.count); notify_fmt(player, "PropChanged count: %d", propchanged_Q.count); report_cachestats(player); }