Skip to content

Commit

Permalink
Switched to ms as time unit
Browse files Browse the repository at this point in the history
  • Loading branch information
madalinoprea committed Feb 10, 2016
1 parent 552f114 commit 70686e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions design/template/sheep_debug/panel/db.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ $queries = $info->getQueries();
<path fill="#AAAAAA" d="M5,8h14c1.7,0,3-1.3,3-3s-1.3-3-3-3H5C3.3,2,2,3.3,2,5S3.3,8,5,8z M18,3.6c0.8,0,1.5,0.7,1.5,1.5S18.8,6.6,18,6.6s-1.5-0.7-1.5-1.5S17.2,3.6,18,3.6z M19,9H5c-1.7,0-3,1.3-3,3s1.3,3,3,3h14c1.7,0,3-1.3,3-3S20.7,9,19,9z M18,13.6
c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S18.8,13.6,18,13.6z M19,16H5c-1.7,0-3,1.3-3,3s1.3,3,3,3h14c1.7,0,3-1.3,3-3S20.7,16,19,16z M18,20.6c-0.8,0-1.5-0.7-1.5-1.5s0.7-1.5,1.5-1.5s1.5,0.7,1.5,1.5S18.8,20.6,18,20.6z"/>
</svg>
<span class="sf-toolbar-value"><?php echo sprintf('%0.2f', $this->getRequestInfo()->getQueryTime()) ?></span>
<span class="sf-toolbar-label"><?php echo $this->__('s'); ?></span>
<span class="sf-toolbar-value"><?php echo sprintf('%0.2f', $this->getRequestInfo()->getQueryTime() * 1000) ?></span>
<span class="sf-toolbar-label"><?php echo $this->__('ms'); ?></span>
</div>
</a>

Expand All @@ -30,7 +30,7 @@ $queries = $info->getQueries();
</div>
<div class="sf-toolbar-info-piece">
<b><?php echo $this->__('Queries Total Time'); ?></b>
<span><?php echo $this->__('%0.2f sec', $this->getRequestInfo()->getQueryTime()) ?></span>
<span><?php echo $this->__('%0.2f ms', $this->getRequestInfo()->getQueryTime() * 1000) ?></span>
</div>
</div>
<?php endif; ?>
Expand Down
6 changes: 3 additions & 3 deletions design/template/sheep_debug/panel/layout.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ $blocks = $info->getBlocks();
?>

<div class="sf-toolbar-block">
<a href="<?php echo $this->getRequestViewUrl() ?>#design">
<a href="<?php echo $this->getRequestViewUrl('layout') ?>">
<div class="sf-toolbar-icon">
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" x="0px" y="0px" height="24" viewBox="0 0 24 24" enable-background="new 0 0 24 24" xml:space="preserve">
<path fill="#AAAAAA" d="M20.1,1H3.9C2.3,1,1,2.3,1,3.9v16.3C1,21.7,2.3,23,3.9,23h16.3c1.6,0,2.9-1.3,2.9-2.9V3.9
C23,2.3,21.7,1,20.1,1z M21,20.1c0,0.5-0.4,0.9-0.9,0.9H3.9C3.4,21,3,20.6,3,20.1V3.9C3,3.4,3.4,3,3.9,3h16.3C20.6,3,21,3.4,21,3.9
V20.1z M5,5h14v3H5V5z M5,10h3v9H5V10z M10,10h9v9h-9V10z">
</path>
</svg>
<span class="sf-toolbar-value"><?php echo sprintf('%0.2f', $this->getRequestInfo()->getRenderingTime()) ?></span>
<span class="sf-toolbar-label"><?php echo $this->__('s'); ?></span>
<span class="sf-toolbar-value"><?php echo sprintf('%0.2f', $this->getRequestInfo()->getRenderingTime() * 1000) ?></span>
<span class="sf-toolbar-label"><?php echo $this->__('ms'); ?></span>
</div>
</a>

Expand Down

0 comments on commit 70686e8

Please sign in to comment.