修正内存的在docker环境中异常的问题,采用计算解决
This commit is contained in:
parent
73e5f0dad8
commit
61279cfdc5
@ -56,7 +56,7 @@ onUnmounted(() => {
|
|||||||
:progress-height="5"
|
:progress-height="5"
|
||||||
:percentage="correctionNumber(memoryState?.usedPercent || 0)"
|
:percentage="correctionNumber(memoryState?.usedPercent || 0)"
|
||||||
:card-type-style="cardTypeStyle"
|
: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"
|
info-card-left-text="RAM"
|
||||||
:text-color="textColor"
|
:text-color="textColor"
|
||||||
/>
|
/>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user