Commit cf20c4fb authored by Daniele Venzano's avatar Daniele Venzano 🏇

Show a percentage

parent 5d5a896f
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<h3 class="section"><a name="platform">Platform</a></h3> <h3 class="section"><a name="platform">Platform</a></h3>
<ul> <ul>
<li>Current load: cores {{ '%.2f' % platform_load[0] }}, memory {{ '%.2f' % platform_load[1] }}</li> <li>Current load: cores {{ '%.2f%%' % platform_load[0] * 100 }}, memory {{ '%.2f%%' % platform_load[1] * 100 }}</li>
<li>Total containers: {{ stats.platform_stats.container_count }}</li> <li>Total containers: {{ stats.platform_stats.container_count }}</li>
<li>Memory: <script>format_bytes({{ stats.platform_stats.memory_total }}, 2)</script> total, <script>format_bytes({{ stats.platform_stats.memory_reserved }}, 2)</script> reserved, <script>format_bytes({{ stats.platform_stats.memory_in_use }}, 2)</script> in use</li> <li>Memory: <script>format_bytes({{ stats.platform_stats.memory_total }}, 2)</script> total, <script>format_bytes({{ stats.platform_stats.memory_reserved }}, 2)</script> reserved, <script>format_bytes({{ stats.platform_stats.memory_in_use }}, 2)</script> in use</li>
<li>Cores: {{ '%.2f' % stats.platform_stats.cores_total }} total, {{ '%.2f' % stats.platform_stats.cores_reserved }} reserved, {{ '%.2f' % stats.platform_stats.cores_in_use }} in use</li> <li>Cores: {{ '%.2f' % stats.platform_stats.cores_total }} total, {{ '%.2f' % stats.platform_stats.cores_reserved }} reserved, {{ '%.2f' % stats.platform_stats.cores_in_use }} in use</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment