mirror of https://git.48k.eu/ogcp
templates: use the correct storage units
Use base 2 storage units in html templates as that's the correct representation for the values shown in the web. Remove units such as "Gbytes" and "MB" for their binary byte unit counterparts.master 1.1.3-20
parent
1f18af1208
commit
cf6794d7c8
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue