mirror of
https://github.com/Oreolek/ifhub.club.git
synced 2024-05-10 12:58:21 +03:00
fix statistics performance
This commit is contained in:
parent
5806062c94
commit
4a4f93ccb0
|
@ -368,9 +368,13 @@ p { margin-bottom: 18px; }
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* --------------------------------------------------------------
|
||||
!STAT
|
||||
-------------------------------------------------------------- */
|
||||
.stat-performance { padding: 20px; background: #f0f7fd; border-top: 1px solid #d1e7f9; color: #333; }
|
||||
.stat-performance table { margin-top: 15px; }
|
||||
.stat-performance table td { width: 200px; vertical-align: top; }
|
||||
.stat-performance h4 { font-weight: bold; color: #81B2DB; }
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,38 +1,27 @@
|
|||
{if $bIsShowStatsPerformance and $oUserCurrent and $oUserCurrent->isAdministrator()}
|
||||
<fieldset>
|
||||
<legend>Statistics performance</legend>
|
||||
<table>
|
||||
<tr align="top">
|
||||
<td align="top">
|
||||
<ul>
|
||||
<li>
|
||||
<b>MySql</b> <br>
|
||||
query: {$aStatsPerformance.sql.count}<br>
|
||||
time: {$aStatsPerformance.sql.time}<br><br><br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Cache</b> <br>
|
||||
query: {$aStatsPerformance.cache.count}<br>
|
||||
set: {$aStatsPerformance.cache.count_set}<br>
|
||||
get: {$aStatsPerformance.cache.count_get}<br>
|
||||
time: {$aStatsPerformance.cache.time}
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td align="top">
|
||||
<ul>
|
||||
<li>
|
||||
<b>PHP</b> <br>
|
||||
time load modules:{$aStatsPerformance.engine.time_load_module}<br>
|
||||
full time:{$iTimeFullPerformance}<br><br><br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<div class="stat-performance">
|
||||
<h2>Statistics performance</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<h4>MySql</h4>
|
||||
query: <strong>{$aStatsPerformance.sql.count}</strong><br />
|
||||
time: <strong>{$aStatsPerformance.sql.time}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<h4>Cache</h4>
|
||||
query: <strong>{$aStatsPerformance.cache.count}</strong><br />
|
||||
— set: <strong>{$aStatsPerformance.cache.count_set}</strong><br />
|
||||
— get: <strong>{$aStatsPerformance.cache.count_get}</strong><br />
|
||||
time: <strong>{$aStatsPerformance.cache.time}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<h4>PHP</h4>
|
||||
time load modules: <strong>{$aStatsPerformance.engine.time_load_module}</strong><br />
|
||||
full time: <strong>{$iTimeFullPerformance}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
|
@ -29,7 +29,7 @@
|
|||
<div class="content">
|
||||
{if $oTopic->getType()=='question'}
|
||||
<div id="topic_question_area_{$oTopic->getId()}" class="poll">
|
||||
{if !$oTopic->getUserQuestionIsVote()} {* Если пользователь еще не участвовал в голосовании *}
|
||||
{if !$oTopic->getUserQuestionIsVote()}
|
||||
<ul class="poll-vote">
|
||||
{foreach from=$oTopic->getQuestionAnswers() key=key item=aAnswer}
|
||||
<li><label><input type="radio" id="topic_answer_{$oTopic->getId()}_{$key}" name="topic_answer_{$oTopic->getId()}" value="{$key}" onchange="$('topic_answer_{$oTopic->getId()}_value').setProperty('value',this.value);" /> {$aAnswer.text|escape:'html'}</label></li>
|
||||
|
|
|
@ -818,6 +818,12 @@ table.admin_page td { /* IE: */ border-left: expression(previousSibling == nul
|
|||
.hidden {display: none;}
|
||||
|
||||
|
||||
/* Stat
|
||||
-------------------------------------------------------------------*/
|
||||
.stat-performance { padding: 20px; background: #f0f7fd; border-top: 1px solid #d1e7f9; color: #333; }
|
||||
.stat-performance table { margin-top: 15px; }
|
||||
.stat-performance table td { width: 200px; vertical-align: top; }
|
||||
.stat-performance h4 { font-weight: bold; color: #81B2DB; }
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1,38 +1,27 @@
|
|||
{if $bIsShowStatsPerformance and $oUserCurrent and $oUserCurrent->isAdministrator()}
|
||||
<fieldset>
|
||||
<legend>Statistics performance</legend>
|
||||
<table>
|
||||
<tr align="top">
|
||||
<td align="top">
|
||||
<ul>
|
||||
<li>
|
||||
<b>MySql</b> <br>
|
||||
query: {$aStatsPerformance.sql.count}<br>
|
||||
time: {$aStatsPerformance.sql.time}<br><br><br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td>
|
||||
<ul>
|
||||
<li>
|
||||
<b>Cache</b> <br>
|
||||
query: {$aStatsPerformance.cache.count}<br>
|
||||
set: {$aStatsPerformance.cache.count_set}<br>
|
||||
get: {$aStatsPerformance.cache.count_get}<br>
|
||||
time: {$aStatsPerformance.cache.time}
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
<td align="top">
|
||||
<ul>
|
||||
<li>
|
||||
<b>PHP</b> <br>
|
||||
time load modules:{$aStatsPerformance.engine.time_load_module}<br>
|
||||
full time:{$iTimeFullPerformance}<br><br><br>
|
||||
</li>
|
||||
</ul>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</fieldset>
|
||||
<div class="stat-performance">
|
||||
<h2>Statistics performance</h2>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>
|
||||
<h4>MySql</h4>
|
||||
query: <strong>{$aStatsPerformance.sql.count}</strong><br />
|
||||
time: <strong>{$aStatsPerformance.sql.time}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<h4>Cache</h4>
|
||||
query: <strong>{$aStatsPerformance.cache.count}</strong><br />
|
||||
— set: <strong>{$aStatsPerformance.cache.count_set}</strong><br />
|
||||
— get: <strong>{$aStatsPerformance.cache.count_get}</strong><br />
|
||||
time: <strong>{$aStatsPerformance.cache.time}</strong>
|
||||
</td>
|
||||
<td>
|
||||
<h4>PHP</h4>
|
||||
time load modules: <strong>{$aStatsPerformance.engine.time_load_module}</strong><br />
|
||||
full time: <strong>{$iTimeFullPerformance}</strong>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
{/if}
|
Loading…
Reference in a new issue