MCPcopy Create free account
hub / github.com/davidgiven/fluxengine / b_showstats

Function b_showstats

dep/hfsutils/libhfs/block.c:95–100  ·  view source on GitHub ↗

* NAME: block->showstats() * DESCRIPTION: output cache hit/miss ratio */

Source from the content-addressed store, hash-verified

93 * DESCRIPTION: output cache hit/miss ratio
94 */
95void b_showstats(const bcache *cache)
96{
97 fprintf(stderr, "BLOCK: CACHE vol 0x%lx \"%s\" hit/miss ratio = %.3f\n",
98 (unsigned long) cache->vol, cache->vol->mdb.drVN,
99 (float) cache->hits / (float) cache->misses);
100}
101
102/*
103 * NAME: block->dumpcache()

Callers 1

b_flushFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected