Changeset 38 for trunk/www/server.php
- Timestamp:
- Jun 16, 2009, 5:26:23 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/www/server.php
r36 r38 341 341 $this->SaveConfiguration(); 342 342 } 343 344 function GetUsedMemory() 345 { 346 $Output = array(); 347 exec('ps -aux|grep "emulator/'.$this->Server['Database']['Emulator']['Id'].'/bin/mangos-worldd -c server/'.$this->Id.'/etc/mangosd.conf"| grep -v grep', $Output); 348 print_r($Output); 349 if(count($Output) > 0) 350 { 351 while(strpos($Output[0], ' ') > 0) $Output[0] = str_replace(' ', ' ', $Output[0]); 352 $Parts = explode(' ', $Output[0]); 353 return($Parts[4]); 354 } else return(0); 355 } 356 343 357 } 344 358
Note:
See TracChangeset
for help on using the changeset viewer.