From 302a776c5fd7be3ecd79b02f642f4e8dbee41a3b Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Wed, 19 Jan 2022 16:24:04 +0100 Subject: Show disk and partition size in mebibytes This commit converts disk and partition size from kibibytes to mebibytes to improve usability. Disk and partition size are used in "Client details" and "Partition & format" forms. It also returns size to kibibytes when creating /setup API payload as required by ogServer. --- ogcp/templates/actions/client_details.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ogcp/templates/actions/client_details.html') diff --git a/ogcp/templates/actions/client_details.html b/ogcp/templates/actions/client_details.html index d4158bf..16160ea 100644 --- a/ogcp/templates/actions/client_details.html +++ b/ogcp/templates/actions/client_details.html @@ -16,7 +16,7 @@ Partition Type Filesytem - Size (KB) + Size (MB) Image @@ -27,7 +27,7 @@ {{ entry.partition }} {{ entry.code }} {{ entry.filesystem }} - {{ entry.size }} + {{ entry.size // 1024}} {{ entry.image }} {% endfor %} -- cgit v1.2.3-18-g5258