mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 11:39:43 +00:00
Again :'(
This commit is contained in:
parent
06ce84e275
commit
eba33b0e00
2 changed files with 5 additions and 7 deletions
|
|
@ -26,7 +26,7 @@ class PocketMinecraftServer{
|
|||
|
||||
private function load(){
|
||||
$this->version = new VersionString();
|
||||
if(!defined("DEBUG") or DEBUG >= 0){
|
||||
if(defined("DEBUG") and DEBUG >= 0){
|
||||
@cli_set_process_title("PocketMine-MP ".MAJOR_VERSION);
|
||||
}
|
||||
if($this->version->isDev()){
|
||||
|
|
@ -89,7 +89,7 @@ class PocketMinecraftServer{
|
|||
|
||||
public function titleTick(){
|
||||
$time = microtime(true);
|
||||
if((!defined("DEBUG") or DEBUG >= 0) and ENABLE_ANSI === true){
|
||||
if(defined("DEBUG") and 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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue