Show the last 200 queries instead of the first 200.

Fixes #3273
This commit is contained in:
mark_story 2012-10-14 21:30:28 -04:00
parent 59f84024e5
commit 3e0fa0009b

View file

@ -921,14 +921,14 @@ class DboSource extends DataSource {
$this->_queriesCnt++;
$this->_queriesTime += $this->took;
$this->_queriesLog[] = array(
'query' => $sql,
'params' => $params,
'affected' => $this->affected,
'numRows' => $this->numRows,
'took' => $this->took
'query' => $sql,
'params' => $params,
'affected' => $this->affected,
'numRows' => $this->numRows,
'took' => $this->took
);
if (count($this->_queriesLog) > $this->_queriesLogMax) {
array_pop($this->_queriesLog);
array_shift($this->_queriesLog);
}
}