Merge pull request #2 from mrmorphic/master

Operator precedence error means query execution times are meaningless. This corrects them.
This commit is contained in:
Sean Harvey 2012-02-10 19:02:29 -08:00
commit b9e63145b4

View File

@ -230,7 +230,7 @@ class PostgreSQLDatabase extends SS_Database {
$handle = pg_query($this->dbConn, $sql);
if(isset($_REQUEST['showqueries'])) {
$endtime = round(microtime(true) - $starttime * 1000, 1);
$endtime = round((microtime(true) - $starttime) * 1000, 1);
Debug::message("\n$sql\n{$endtime}ms\n", false);
}