Display time in ms instead of seconds
Only the template is effected, no db changes.
This commit is contained in:
parent
c0e0b260d5
commit
93d87274ef
|
@ -114,7 +114,7 @@ abstract class AbstractServerController extends AbstractController
|
|||
*/
|
||||
protected function formatServer($server)
|
||||
{
|
||||
$server['rtime'] = round((float) $server['rtime'], 4);
|
||||
$server['rtime'] = $server['rtime'];
|
||||
$server['last_online'] = psm_timespan($server['last_online']);
|
||||
$server['last_offline'] = psm_timespan($server['last_offline']);
|
||||
if ($server['last_offline'] != psm_get_lang('system', 'never')) {
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<th scope="col">{{ label_domain }}</th>
|
||||
<th scope="col" style="width: 5%;">{{ label_port }}</th>
|
||||
<th scope="col" style="width: 8%;">{{ label_type }}</th>
|
||||
<th scope="col" style="width: 8%;">{{ label_rtime }}</th>
|
||||
<th scope="col" style="width: 8%;">{{ label_rtime }} (ms)</th>
|
||||
<th scope="col" style="width: 10%;">{{ label_last_online }}</th>
|
||||
<th scope="col" style="width: 10%;">{{ label_last_offline }}</th>
|
||||
<th scope="col" style="width: 10%;">{{ label_monitoring }}</th>
|
||||
|
@ -41,7 +41,7 @@
|
|||
<td><div class="content">{{ server.ip|raw }}</div></td>
|
||||
<td>{{ server.port }}</td>
|
||||
<td>{{ server.type }}</td>
|
||||
<td>{{ server.rtime }}</td>
|
||||
<td>{{ (server.rtime * 1000)|round(2) }}</td>
|
||||
<td><div class="content">{{ server.last_online }}</div></td>
|
||||
<td><div class="content">{{ server.last_offline }}</div></td>
|
||||
<td>
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
<li class="list-group-item">
|
||||
<dl class="row">
|
||||
<dt class="col-md-4">{{ label_rtime }}:</dt>
|
||||
<dd class="col-md-8">{{ rtime }} {{ label_seconds }}</dd>
|
||||
<dd class="col-md-8">{{ rtime * 1000 }} {{ label_seconds }}</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
<p class="card-text">
|
||||
{{ label_last_online }}: {{ server.last_online_nice }}<br>
|
||||
{{ label_last_offline }}: {{ server.last_offline_nice }} {{ server.last_offline_duration_nice }}<br>
|
||||
{{ label_rtime }}: {{ server.rtime }}
|
||||
{{ label_rtime }}: {{ (server.rtime * 1000)|round(2) }} ms
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -97,7 +97,7 @@
|
|||
<th class="full"><a href="{{ server.url_view|raw }}" class="text-white">{{ server.label }}<span class="sr-only"> ({{ label_online }})</span></a></th>
|
||||
<td>{{ server.last_online_nice }}</td>
|
||||
<td>{{ server.last_offline_nice }} {{ server.last_offline_duration_nice }}</td>
|
||||
<td>{{ server.rtime }}s</td>
|
||||
<td>{{ (server.rtime * 1000)|round(2) }} ms</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
|
|
Loading…
Reference in New Issue