ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/ext/commands.ext
(Generate patch)

Comparing deliantra/server/ext/commands.ext (file contents):
Revision 1.64 by root, Thu Oct 25 09:01:23 2007 UTC vs.
Revision 1.65 by root, Sat Nov 10 22:43:25 2007 UTC

370cf::register_command uptime => sub { 370cf::register_command uptime => sub {
371 my ($ob, $arg) = @_; 371 my ($ob, $arg) = @_;
372 372
373 my $startup = POSIX::strftime "%Y-%m-%d %H:%M:%S %Z", localtime $cf::UPTIME; 373 my $startup = POSIX::strftime "%Y-%m-%d %H:%M:%S %Z", localtime $cf::UPTIME;
374 my $runtime = sprintf "%.1f", (time - $cf::UPTIME) / 86400; 374 my $runtime = sprintf "%.1f", (time - $cf::UPTIME) / 86400;
375 $ob->send_msg ("c/uptime" => "server started $startup, uptime ${runtime}\d", cf::NDI_REPLY); 375 $ob->send_msg ("c/uptime" => "server started $startup, uptime ${runtime}\d", cf::NDI_REPLY | cf::NDI_CLEAR);
376}; 376};
377 377
378my %IN_MEMORY = ( 378my %IN_MEMORY = (
379 cf::MAP_IN_MEMORY => "I", 379 cf::MAP_IN_MEMORY => "I",
380 cf::MAP_SWAPPED => "S", 380 cf::MAP_SWAPPED => "S",

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines