Luciano Baraglia 11 years ago
parent
commit
a1e511465c
  1. 4
      extensions/yii/debug/panels/DbPanel.php
  2. 2
      extensions/yii/debug/panels/LogPanel.php
  3. 2
      extensions/yii/debug/views/default/view.php

4
extensions/yii/debug/panels/DbPanel.php

@ -112,9 +112,9 @@ class DbPanel extends Panel
$this->_models[] = [ $this->_models[] = [
'type' => $this->detectQueryType($dbTiming['info']), 'type' => $this->detectQueryType($dbTiming['info']),
'query' => $dbTiming['info'], 'query' => $dbTiming['info'],
'duration' => ($dbTiming['duration'] * 1000), #in milliseconds 'duration' => ($dbTiming['duration'] * 1000), // in milliseconds
'trace' => $dbTiming['trace'], 'trace' => $dbTiming['trace'],
'timestamp' => $dbTiming['timestamp'], 'timestamp' => ($dbTiming['timestamp'] * 1000), // in milliseconds
'seq' => $seq, 'seq' => $seq,
]; ];
} }

2
extensions/yii/debug/panels/LogPanel.php

@ -71,7 +71,7 @@ class LogPanel extends Panel
'message' => $message[0], 'message' => $message[0],
'level' => $message[1], 'level' => $message[1],
'category' => $message[2], 'category' => $message[2],
'time' => ($message[3] * 1000), #time in milliseconds 'time' => ($message[3] * 1000), // time in milliseconds
'trace' => $message[4] 'trace' => $message[4]
]; ];
} }

2
extensions/yii/debug/views/default/view.php

@ -18,7 +18,7 @@ $this->title = 'Yii Debugger';
<div class="default-view"> <div class="default-view">
<div id="yii-debug-toolbar"> <div id="yii-debug-toolbar">
<div class="yii-debug-toolbar-block title"> <div class="yii-debug-toolbar-block title">
<?php echo Html::a('Yii Debugger', ['index'],['title' => 'Back to main debug page']);?> <?= Html::a('Yii Debugger', ['index'], ['title' => 'Back to main debug page']) ?>
</div> </div>
<?php foreach ($panels as $panel): ?> <?php foreach ($panels as $panel): ?>
<?= $panel->getSummary() ?> <?= $panel->getSummary() ?>

Loading…
Cancel
Save