diff --git a/frontend/src/views/home/status/index.vue b/frontend/src/views/home/status/index.vue index b9eb23b27..086e712d3 100644 --- a/frontend/src/views/home/status/index.vue +++ b/frontend/src/views/home/status/index.vue @@ -53,28 +53,22 @@ {{ $t('home.mem') }}: - - {{ $t('home.total') }}: {{ formatNumber(currentInfo.memoryTotal / 1024 / 1024) }} MB - - - {{ $t('home.used') }}: {{ formatNumber(currentInfo.memoryUsed / 1024 / 1024) }} MB - - - {{ $t('home.free') }}: {{ formatNumber(currentInfo.memoryAvailable / 1024 / 1024) }} MB - + {{ $t('home.total') }}: {{ computeSize(currentInfo.memoryTotal) }} + {{ $t('home.used') }}: {{ computeSize(currentInfo.memoryUsed) }} + {{ $t('home.free') }}: {{ computeSize(currentInfo.memoryAvailable) }} {{ $t('home.percent') }}: {{ formatNumber(currentInfo.memoryUsedPercent) }}%
{{ $t('home.swapMem') }}: - {{ $t('home.total') }}: {{ formatNumber(currentInfo.swapMemoryTotal / 1024 / 1024) }} MB + {{ $t('home.total') }}: {{ computeSize(currentInfo.swapMemoryTotal) }} - {{ $t('home.used') }}: {{ formatNumber(currentInfo.swapMemoryUsed / 1024 / 1024) }} MB + {{ $t('home.used') }}: {{ computeSize(currentInfo.swapMemoryUsed) }} - {{ $t('home.free') }}: {{ formatNumber(currentInfo.swapMemoryAvailable / 1024 / 1024) }} MB + {{ $t('home.free') }}: {{ computeSize(currentInfo.swapMemoryAvailable) }} {{ $t('home.percent') }}: {{ formatNumber(currentInfo.swapMemoryUsedPercent) }}% @@ -91,8 +85,7 @@ - ( {{ formatNumber(currentInfo.memoryUsed / 1024 / 1024) }} / - {{ formatNumber(currentInfo.memoryTotal / 1024 / 1024) }} ) MB + {{ computeSize(currentInfo.memoryUsed) }} / {{ computeSize(currentInfo.memoryTotal) }}