summaryrefslogtreecommitdiffstats
path: root/ogcp
diff options
context:
space:
mode:
Diffstat (limited to 'ogcp')
-rw-r--r--ogcp/templates/actions/client_details.html2
-rw-r--r--ogcp/templates/actions/setup.html4
-rw-r--r--ogcp/templates/dashboard.html18
3 files changed, 12 insertions, 12 deletions
diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html
index 620d8eb..42b03c7 100644
--- a/ogcp/templates/actions/client_details.html
+++ b/ogcp/templates/actions/client_details.html
@@ -22,7 +22,7 @@
<th>{{_('Partition')}}</th>
<th>{{_('Type')}}</th>
<th>{{_('Filesystem')}}</th>
- <th>{{_('Size')}} (MB)</th>
+ <th>{{_('Size')}} (MiB)</th>
<th>{{_('Image')}}</th>
<th colspan="2"></th>
</tr>
diff --git a/ogcp/templates/actions/setup.html b/ogcp/templates/actions/setup.html
index a81d67e..c64c676 100644
--- a/ogcp/templates/actions/setup.html
+++ b/ogcp/templates/actions/setup.html
@@ -20,7 +20,7 @@
<tr>
<th>{{ _('Disk') }}</th>
<th>{{ _('Partition Table Type') }}</th>
- <th>{{ _('Total Disk Size') }} (MB)</th>
+ <th>{{ _('Total Disk Size') }} (MiB)</th>
</tr>
</thead>
@@ -46,7 +46,7 @@
<th>{{ _('Partition') }}</th>
<th>{{ _('Type') }}</th>
<th>{{ _('Filesystem') }}</th>
- <th>{{ _('Size') }} (MB)</th>
+ <th>{{ _('Size') }} (MiB)</th>
<th colspan="2"></th>
</tr>
</thead>
diff --git a/ogcp/templates/dashboard.html b/ogcp/templates/dashboard.html
index bc89128..3da6587 100644
--- a/ogcp/templates/dashboard.html
+++ b/ogcp/templates/dashboard.html
@@ -113,14 +113,14 @@
</ul>
<ul class="list-group list-group-horizontal">
<li class="list-group-item w-50">
- {{ disk['total'] // 2**30 }} Gbytes
+ {{ disk['total'] // 2**30 }} GiB
</li>
<li class="list-group-item w-50">
- {{ (disk['total'] - disk['free']) // 2**30 }} Gbytes
+ {{ (disk['total'] - disk['free']) // 2**30 }} GiB
({{ (((disk['total'] - disk['free']) / disk['total']) * 100)|int }}%)
</li>
<li class="list-group-item w-50">
- {{ disk['free'] // 2**30 }} Gbytes
+ {{ disk['free'] // 2**30 }} GiB
({{ ((disk['free'] / disk['total']) * 100)|int }}%)
</li>
</ul>
@@ -149,14 +149,14 @@
</ul>
<ul class="list-group list-group-horizontal">
<li class="list-group-item w-50">
- {{ (stats['memory']['size'] / 2**30)|round(3) }} Gbytes
+ {{ (stats['memory']['size'] / 2**30)|round(3) }} GiB
</li>
<li class="list-group-item w-50">
- {{ ((stats['memory']['size'] - stats['memory']['free']) / 2**30)|round(3) }} Gbytes
+ {{ ((stats['memory']['size'] - stats['memory']['free']) / 2**30)|round(3) }} GiB
({{ (((stats['memory']['size'] - stats['memory']['free']) / stats['memory']['size']) * 100)|int }}%)
</li>
<li class="list-group-item w-50">
- {{ (stats['memory']['free'] / 2**30)|round(3) }} Gbytes
+ {{ (stats['memory']['free'] / 2**30)|round(3) }} GiB
({{ ((stats['memory']['free'] / stats['memory']['size']) * 100)|int }}%)
</li>
</ul>
@@ -186,14 +186,14 @@
</ul>
<ul class="list-group list-group-horizontal">
<li class="list-group-item w-50">
- {{ (stats['swap']['size'] / 2**30)|round(3) }} Gbytes
+ {{ (stats['swap']['size'] / 2**30)|round(3) }} GiB
</li>
<li class="list-group-item w-50">
- {{ ((stats['swap']['size'] - stats['swap']['free']) / 2**30)|round(3) }} Gbytes
+ {{ ((stats['swap']['size'] - stats['swap']['free']) / 2**30)|round(3) }} GiB
({{ (((stats['swap']['size'] - stats['swap']['free']) / stats['swap']['size']) * 100)|int }}%)
</li>
<li class="list-group-item w-50">
- {{ (stats['swap']['free'] / 2**30)|round(3) }} Gbytes
+ {{ (stats['swap']['free'] / 2**30)|round(3) }} GiB
({{ ((stats['swap']['free'] / stats['swap']['size']) * 100)|int }}%)
</li>
</ul>