aboutsummaryrefslogtreecommitdiff
path: root/templates/index.tmpl
diff options
context:
space:
mode:
authorRunxi Yu <me@runxiyu.org>2025-03-09 16:33:51 +0800
committerRunxi Yu <me@runxiyu.org>2025-03-09 16:33:51 +0800
commitc8f7040fe57d5f16a0a54c2cd85424511d537ad3 (patch)
tree87883109453eb3f87ab3052919109f49efb80361 /templates/index.tmpl
parentgc: Add a garbage collection button (diff)
downloadforge-c8f7040fe57d5f16a0a54c2cd85424511d537ad3.tar.gz
forge-c8f7040fe57d5f16a0a54c2cd85424511d537ad3.tar.zst
forge-c8f7040fe57d5f16a0a54c2cd85424511d537ad3.zip
index: Show allocated bytes
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r--templates/index.tmpl9
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl
index 2aa5729..917e7fe 100644
--- a/templates/index.tmpl
+++ b/templates/index.tmpl
@@ -53,12 +53,15 @@
<th scope="row">SSH fingerprint</th>
<td><code>{{- .global.server_public_key_fingerprint -}}</code></td>
</tr>
+ <tr>
+ <th scope="row">Memory usage</th>
+ <td>
+ Allocated {{ .mem }} bytes <a href="/:/gc/" class="btn btn-danger">Collect garbage</a>
+ </td>
+ </tr>
</tbody>
</table>
</div>
- <div class="padding-wrapper">
- <a href="/:/gc" class="btn btn-danger">Run the garbage collector</a>
- </div>
<footer>
{{- template "footer" . -}}
</footer>