Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
feat(View): Add ram use status in footer
Browse files Browse the repository at this point in the history
  • Loading branch information
Rhilip committed Mar 10, 2019
1 parent 0eed6a0 commit ec415ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions apps/views/admin/redis_keys.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@
<table class="layui-table">
<thead>
<tr>
<th class="text-right">#</th>
<th class="text-center">Type</th>
<th class="text-right" style="width: 5%">#</th>
<th class="text-center" style="width: 10%">Type</th>
<th class="text-left">Key</th>
<th class=""></th>
<th class="" style="width: 5%"></th>
</tr>
</thead>
<tbody>
Expand All @@ -72,7 +72,7 @@
?>
<?php foreach ($keys as $key): ?>
<tr>
<td class="text-right" style="width: 5%"><?= $index + ($offset * $perpage) ?></td>
<td class="text-right"><?= $index + ($offset * $perpage) ?></td>
<td class="text-center"><?= $type_dict[$types[$key]] ?></td>
<td class="text-left">
<a href="/admin/service?provider=redis&panel=key&key=<?= $this->e($key) ?>"><?= $key ?></a>
Expand Down
2 changes: 1 addition & 1 deletion apps/views/layout/base.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
<p class="copyright">
<a href="/" target="_self"><?= app()->config->get('base.site_name') ?></a> 2019-2020 Powered by <a href="https://github.com/Rhilip/RidPT">RidPT</a>
</p>
<p class="create-info">[ Page created in <b><?= number_format(microtime(true) - app()->request->start_at, 6) ?></b> sec with <b><?= count(app()->pdo->getExecuteData()) ?></b> db queries, <b><?= array_sum(app()->redis->getCalledData())?></b> calls of Redis ]</p>
<p class="create-debug-info">[ Page created in <b><?= number_format(microtime(true) - app()->request->start_at, 6) ?></b> sec with <b><?= $this->e(memory_get_usage(),'format_bytes') ?></b> ram used, <b><?= count(app()->pdo->getExecuteData()) ?></b> db queries, <b><?= array_sum(app()->redis->getCalledData())?></b> calls of Redis ]</p>
</div>
</div>
</footer>
Expand Down

0 comments on commit ec415ac

Please sign in to comment.