--- deliantra/server/ext/commands.ext 2007/07/22 17:10:06 1.56 +++ deliantra/server/ext/commands.ext 2007/07/28 00:15:03 1.57 @@ -70,7 +70,7 @@ . ($ob->flag (cf::FLAG_WIZ) ? " [WIZ]" : "") . " [" . $pl->ns->version . "]" . " [" . ($pl->peaceful || $privileged ? $ob->map->visible_name : $ob->region->name) . "]" - . (sprintf " [rtt %.3fs]", $pl->ns->rtt * 1e-6) + . (sprintf " [rtt %.3fs]", $pl->ns->tcpi_rtt * 1e-6) . ($privileged ? " " . $pl->ns->host : "") } sort { (lc $a->ob->name) cmp (lc $b->ob->name) } @pl ), @@ -290,7 +290,8 @@ unless $arg > 0; # minimum is 5k/s - $ob->contr->ns->max_rate ((List::Util::max 5000, $arg) * $cf::TICK); + # maximum is 100k/s, this should be configurable + $ob->contr->ns->max_rate ((List::Util::max 5000, List::Util::min 100000, $arg) * $cf::TICK); $ob->reply (undef, sprintf "Output rate now set to %dbps.", $ob->contr->ns->max_rate / $cf::TICK); 1