Commits

Mirko Chialastri committed 855e2f2

Fix: memoria utilizzata

  • Participants
  • Parent commits d110df7

Comments (0)

Files changed (1)

File Libs/Worker.php

 	 */
 	public function checkProcessMemoryLimit() {
 		// PHP (god)
-		$memory = memory_get_usage(true);
-		Log::info(sprintf('Memoria utilizzata: %s di %s', $this->_convert($memory), ini_get('memory_limit')), array('prefix' => 'Memory::usage'));
+		$memory = memory_get_usage();
+		Log::info(sprintf('Memoria utilizzata: %s (%d) di %s', $this->_convert($memory), $memory, ini_get('memory_limit')), array('prefix' => 'Memory::usage'));
 		if($memory > 1000000) {
 			Log::error('Worker::memory exiting run due to memory limit', array('prefix' => 'Memory::usage'));
 			exit(1);