修正内存的在docker环境中异常的问题,采用计算解决

This commit is contained in:
Sun 2024-01-17 15:05:51 +08:00
parent 73e5f0dad8
commit 61279cfdc5

View File

@ -56,7 +56,7 @@ onUnmounted(() => {
:progress-height="5"
:percentage="correctionNumber(memoryState?.usedPercent || 0)"
:card-type-style="cardTypeStyle"
:info-card-right-text="`${formatMemorySize(memoryState?.total || 0)}/${formatMemorySize(memoryState?.free || 0)}`"
:info-card-right-text="`${formatMemorySize(memoryState?.used || 0)}/${formatMemorySize((memoryState?.total || 0) - (memoryState?.used || 0) || 0)}`"
info-card-left-text="RAM"
:text-color="textColor"
/>