mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 20:00:37 +02:00
Styling fixes. Debug timer totals fix.
This commit is contained in:
@@ -412,11 +412,30 @@ class e107_db_debug {
|
|||||||
$aSum['%Time']=$totTime ? number_format(100.0 * ($aSum['Time'] / $totTime), 0) : 0;
|
$aSum['%Time']=$totTime ? number_format(100.0 * ($aSum['Time'] / $totTime), 0) : 0;
|
||||||
$aSum['%DB Time']=$db_time ? number_format(100.0 * ($aSum['DB Time'] / $db_time), 0) : 0;
|
$aSum['%DB Time']=$db_time ? number_format(100.0 * ($aSum['DB Time'] / $db_time), 0) : 0;
|
||||||
$aSum['%DB Count']=($sql->db_QueryCount()) ? number_format(100.0 * ($aSum['DB Count'] / ($sql->db_QueryCount())), 0) : 0;
|
$aSum['%DB Count']=($sql->db_QueryCount()) ? number_format(100.0 * ($aSum['DB Count'] / ($sql->db_QueryCount())), 0) : 0;
|
||||||
$aSum['Time']=number_format($aSum['Time']*1000.0, 1);
|
$aSum['Time']=number_format($aSum['Time'] * 1000.0, 1);
|
||||||
$aSum['DB Time']=number_format($aSum['DB Time']*1000.0, 1);
|
$aSum['DB Time']=number_format($aSum['DB Time']*1000.0, 1);
|
||||||
|
|
||||||
$text .= "<tr><td class='fcaption'><b>".implode("</b> </td><td class='fcaption' style='text-align:right'><b>", $aSum)."</b> </td><td class='fcaption'> </td></tr>\n";
|
|
||||||
$text .= "\n</table><br />\n";
|
$text .= "<tr>
|
||||||
|
<td class='fcaption'> </td>
|
||||||
|
<td class='fcaption' style='text-align:right'><b>Total</b></td>
|
||||||
|
<td class='fcaption' style='text-align:right'><b>".$aSum['%Time']."</b></td>
|
||||||
|
<td class='fcaption' style='text-align:right'><b>".$aSum['%DB Time']."</b></td>
|
||||||
|
<td class='fcaption' style='text-align:right'><b>".$aSum['%DB Count']."</b></td>
|
||||||
|
<td class='fcaption' style='text-align:right'><b>".$aSum['Time']."</b></td>
|
||||||
|
<td class='fcaption' style='text-align:right'><b>".$aSum['DB Time']."</b></td>
|
||||||
|
<td class='fcaption' style='text-align:right'><b>".$aSum['DB Count']."</b></td>
|
||||||
|
<td class='fcaption' style='text-align:right'><b>".$tMarker['Memory']."</b></td>
|
||||||
|
<td class='fcaption' style='text-align:right'><b>".$tMarker['OB Lev']."</b></td>
|
||||||
|
|
||||||
|
</tr>
|
||||||
|
";
|
||||||
|
|
||||||
|
|
||||||
|
// $text .= "<tr><td class='fcaption'><b>".implode("</b> </td><td class='fcaption' style='text-align:right'><b>", $aSum)."</b> </td><td class='fcaption'> </td></tr>\n";
|
||||||
|
|
||||||
|
$text .= "\n</table><br />\n";
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Stats by Table
|
// Stats by Table
|
||||||
@@ -461,7 +480,7 @@ class e107_db_debug {
|
|||||||
$aSum['%DB Time']=$db_time ? number_format(100.0 * ($aSum['DB Time'] / $db_time), 0) : 0;
|
$aSum['%DB Time']=$db_time ? number_format(100.0 * ($aSum['DB Time'] / $db_time), 0) : 0;
|
||||||
$aSum['%DB Count']=($sql->db_QueryCount()) ? number_format(100.0 * ($aSum['DB Count'] / ($sql->db_QueryCount())), 0) : 0;
|
$aSum['%DB Count']=($sql->db_QueryCount()) ? number_format(100.0 * ($aSum['DB Count'] / ($sql->db_QueryCount())), 0) : 0;
|
||||||
$aSum['DB Time']=number_format($aSum['DB Time']*1000.0, 1);
|
$aSum['DB Time']=number_format($aSum['DB Time']*1000.0, 1);
|
||||||
$text .= "<tr><td class='fcaption'>".implode(" </td><td class='fcaption' style='text-align:right'>", array_values($aSum))." </td></tr>\n";
|
$text .= "<tr><td class='fcaption'><b>".implode(" </td><td class='fcaption' style='text-align:right'><b>", array_values($aSum))." </b></td></tr>\n";
|
||||||
$text .= "\n</table><br />\n";
|
$text .= "\n</table><br />\n";
|
||||||
|
|
||||||
return $text;
|
return $text;
|
||||||
|
@@ -816,12 +816,16 @@ class siteStats
|
|||||||
|
|
||||||
$url = str_replace($this->plugFolder,'',$url);
|
$url = str_replace($this->plugFolder,'',$url);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
if($truncate)
|
if($truncate)
|
||||||
{
|
{
|
||||||
return e107::getParser()->text_truncate($url,50);
|
$result = e107::getParser()->text_truncate($url,50);
|
||||||
|
|
||||||
|
return $result;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $url;
|
return trim($url);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -842,6 +846,7 @@ class siteStats
|
|||||||
$totalArray = array();
|
$totalArray = array();
|
||||||
$totalv = 0;
|
$totalv = 0;
|
||||||
$totalu = 0;
|
$totalu = 0;
|
||||||
|
$total = 0;
|
||||||
foreach ($this -> fileInfo as $k => $v)
|
foreach ($this -> fileInfo as $k => $v)
|
||||||
{
|
{
|
||||||
$found = (strpos($k,'error/') === 0);
|
$found = (strpos($k,'error/') === 0);
|
||||||
@@ -871,7 +876,7 @@ class siteStats
|
|||||||
if($info['ttl'])
|
if($info['ttl'])
|
||||||
{
|
{
|
||||||
$percentage = round(($info['ttl']/$totalv) * 100, 2);
|
$percentage = round(($info['ttl']/$totalv) * 100, 2);
|
||||||
$text .= "<tr>\n<td class='forumheader3' style='width: 20%;'><img src='".e_PLUGIN."log/images/html.png' alt='' style='vertical-align: middle;' /> <a href='".$info['url']."'>".$this->getLabel($key)."</a>
|
$text .= "<tr>\n<td class='forumheader3' style='width: 20%;text-align:left'><img src='".e_PLUGIN."log/images/html.png' alt='' style='vertical-align: middle;' /> <a href='".$info['url']."'>".$this->getLabel($key)."</a>
|
||||||
</td>\n<td class='forumheader3' style='width: 70%;'>".$this -> bar($percentage, $info['ttl']." [".$info['unq']."]")."</td>\n<td class='forumheader3' style='width: 10%; text-align: center;'>".$percentage."%</td>\n</tr>\n";
|
</td>\n<td class='forumheader3' style='width: 70%;'>".$this -> bar($percentage, $info['ttl']." [".$info['unq']."]")."</td>\n<td class='forumheader3' style='width: 10%; text-align: center;'>".$percentage."%</td>\n</tr>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -143,7 +143,7 @@ table label.checkbox {
|
|||||||
#sidebar .panel-body ul.list-unstyled { padding-left:0}
|
#sidebar .panel-body ul.list-unstyled { padding-left:0}
|
||||||
|
|
||||||
|
|
||||||
li.dropdown-avatar > a.dropdown-toggle { padding:0; padding-top:9px; padding-bottom:10px}
|
li.dropdown-avatar > a.dropdown-toggle { padding:9px 15px 10px 0; }
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user