_uptime.c

tmi2_fluffos_v2/lib/cmds/std/_uptime.c · 420 B

From the archive tmi2_fluffos_v2.zip

Download the archive   « Back to the archive contents

// uptime.c
// Tells you how long the mud is up.
// Lord knows who wrote it.
// Mobydick added header and help, 11-20-92

#include <mudlib.h>

inherit DAEMON ;


int cmd_uptime() {
   write(capitalize(mud_name()) + " has been up for " +
	 format_time(uptime()) + ".\n");
   return 1;
}

int help() {
	write ("Usage: uptime\n\n"+
"Tells you how long the MUD has been running for since the last crash.\n") ;
	return 1 ;
}

Site Stats

Snippets: 1791
Codebases: 571