_cache.c

nightmare3_fluffos_v2/lib/cmds/adm/_cache.c · 363 B

From the archive nightmare3_fluffos_v2.zip

Download the archive   « Back to the archive contents

#include <std.h>

inherit DAEMON;

int
cmd_cache(string arg)
{
  if(!archp(previous_object())) return 0;
	cache_stats();
	return 1;
}

int help()
{
  write( @EndText
Syntax: cache
Effect: Gets the cache stats from the driver, including the hit rate
See man: cache_stats
See also: callouts, mstatus, netstat, opcprof, fdinfo, dumpallobj
EndText
  );
  return 1;
}

Site Stats

Snippets: 1791
Codebases: 571