diff options
author | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-05-29 11:10:55 +0200 |
---|---|---|
committer | Alejandro Sirgo Rica <asirgo@soleta.eu> | 2024-05-30 15:50:37 +0200 |
commit | cf6794d7c811dfaa8c0a69225598b5f061b45f96 (patch) | |
tree | 7cf5c551888affc0cce00de716409d4cde0ddde9 /ogcp/templates | |
parent | 1f18af1208ede0b16da393641e7e1386690e7aa5 (diff) |
templates: use the correct storage units1.1.3-20
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.
Diffstat (limited to 'ogcp/templates')
-rw-r--r-- | ogcp/templates/actions/client_details.html | 2 | ||||
-rw-r--r-- | ogcp/templates/actions/setup.html | 4 | ||||
-rw-r--r-- | ogcp/templates/dashboard.html | 18 |
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> |