_upsince.c

tmi2_fluffos_v2/lib/cmds/std/_upsince.c · 436 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

// upsince.c
// Lord only knows who wrote this.
// Mobydick added help and header, 11-20-92

#define UPSINCE "/log/UPSINCE"
#include <mudlib.h>

inherit DAEMON ;

int
cmd_upsince( string arg )
{
    write("The driver has been up since:\n\t");
    write(ctime( time() - uptime() ) + "\n");
    return 1;
}

int help() {
	write ("Usage: upsince\n\n"+
"This command tells you how long it has been since the last crash.\n") ;
	return 1 ;
}

Site Stats

Snippets: 1791
Codebases: 571