Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

As in http://cakephp.lighthouseapp.com/projects/42648/2-0-migration-g…

…uide the getMicrotime() function was removed. Using microtime(true) instead.


HTH.
  • Loading branch information...
commit 8e4d802cd00320b77953fc76a2dbf201a565b408 1 parent d836b3a
@lipedjow lipedjow authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 models/datasources/array_source.php
View
6 models/datasources/array_source.php
@@ -87,7 +87,7 @@ public function read(&$model, $queryData = array()) {
);
return array($model->alias => array());
}
- $startTime = getMicrotime();
+ $startTime = microtime(true);
$data = array();
$i = 0;
$limit = false;
@@ -113,7 +113,7 @@ public function read(&$model, $queryData = array()) {
}
}
if ($queryData['fields'] === 'COUNT') {
- $this->_registerLog($model, $queryData, getMicrotime() - $startTime, 1);
+ $this->_registerLog($model, $queryData, microtime(true) - $startTime, 1);
if ($limit !== false) {
$data = array_slice($data, ($queryData['page'] - 1) * $queryData['limit'], $queryData['limit'], false);
}
@@ -160,7 +160,7 @@ public function read(&$model, $queryData = array()) {
}
}
}
- $this->_registerLog($model, $queryData, getMicrotime() - $startTime, count($data));
+ $this->_registerLog($model, $queryData, microtime(true) - $startTime, count($data));
$_associations = $model->__associations;
if ($queryData['recursive'] > -1) {
foreach ($_associations as $type) {
Please sign in to comment.
Something went wrong with that request. Please try again.