_cache.c

tmi2_fluffos_v2/lib/cmds/xtra/_cache.c · 515 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

// cache.c
// Command to return the cache-stats.
// Original author unknown, Truilkan or Buddha likely candidates.
// Header and help added by Mobydick, 11-21-92. BEAT CAL!
// Added #ifdef , Leto 94-11-11

inherit "std/cmd_m";

int cmd_cache()
{

#ifndef HAS_CACHE_STATS
  write("Driver was compiled without CACHE_STATS!\n");
#else
        cache_stats();
#endif
        return 1;
}

int help() {
	write ("Usage: cache\n\n"+
"Cache returns some interesting if cryptic statistics about the cache.\n") ;
	return 1 ;
}

Site Stats

Snippets: 1791
Codebases: 571