test again

This commit is contained in:
Shoghi Cervantes 2013-08-28 17:02:04 +02:00
parent 5d27a40a6e
commit feea39a97f
2 changed files with 32 additions and 35 deletions

View file

@ -26,7 +26,9 @@ class PocketMinecraftServer{
private function load(){
$this->version = new VersionString();
@cli_set_process_title("PocketMine-MP ".MAJOR_VERSION);
if(!defined("DEBUG") or DEBUG >= 0){
@cli_set_process_title("PocketMine-MP ".MAJOR_VERSION);
}
if($this->version->isDev()){
console("[INFO] \x1b[31;1mThis is a Development version");
}
@ -87,7 +89,7 @@ class PocketMinecraftServer{
public function titleTick(){
$time = microtime(true);
if(ENABLE_ANSI === true){
if((!defined("DEBUG") or DEBUG >= 0) and ENABLE_ANSI === true){
echo "\x1b]0;PocketMine-MP ".MAJOR_VERSION." | Online ". count($this->clients)."/".$this->maxClients." | RAM ".round((memory_get_usage() / 1024) / 1024, 2)."MB | U ".round(($this->interface->bandwidth[1] / max(1, $time - $this->interface->bandwidth[2])) / 1024, 2)." D ".round(($this->interface->bandwidth[0] / max(1, $time - $this->interface->bandwidth[2])) / 1024, 2)." kB/s | TPS ".$this->getTPS()."\x07";
}
$this->interface->bandwidth = array(0, 0, $time);