diff --git a/library/ZFDebug/Controller/Plugin/Debug/Plugin/Log.php b/library/ZFDebug/Controller/Plugin/Debug/Plugin/Log.php index 3d71536..7dedaad 100644 --- a/library/ZFDebug/Controller/Plugin/Debug/Plugin/Log.php +++ b/library/ZFDebug/Controller/Plugin/Debug/Plugin/Log.php @@ -117,9 +117,9 @@ public function getIconData() */ public function mark($name, $logFirst = false) { if (isset($this->_marks[$name])) { - $this->_marks[$name]['time'] = round((microtime(true)-$_SERVER['REQUEST_TIME_FLOAT'])*1000-$this->_marks[$name]['time']).'ms'; + $this->_marks[$name]['time'] = round((microtime(true)-$_SERVER['REQUEST_TIME_FLOAT'])*1000-(int)$this->_marks[$name]['time']).'ms'; if (function_exists('memory_get_usage')) { - $this->_marks[$name]['memory'] = round((memory_get_usage()-$this->_marks[$name]['memory'])/1024) . 'K'; + $this->_marks[$name]['memory'] = round((memory_get_usage()-(int)$this->_marks[$name]['memory'])/1024) . 'K'; } else { $this->_marks[$name]['memory'] = 'N/A'; } @@ -218,4 +218,4 @@ public function dispatchLoopShutdown() { $this->mark('Dispatch'); } -} \ No newline at end of file +}