From a42c606d200786a24d39a2f379f938ff97def115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=AE=97=E6=B4=8B?= Date: Fri, 16 Dec 2022 11:34:09 +0800 Subject: [PATCH] =?UTF-8?q?redis=E7=9B=91=E6=8E=A7=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E9=9D=A2=E6=9D=BF=E9=87=8D=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mayfly_go_web/src/views/ops/redis/Info.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mayfly_go_web/src/views/ops/redis/Info.vue b/mayfly_go_web/src/views/ops/redis/Info.vue index 1313553c..72e05a0e 100644 --- a/mayfly_go_web/src/views/ops/redis/Info.vue +++ b/mayfly_go_web/src/views/ops/redis/Info.vue @@ -185,8 +185,9 @@ const initCharts = () => { } const initMemStats = () => { + let maxMem = state.memInfo.maxmemory === '0' ? state.memInfo.total_system_memory : state.memInfo.maxmemory const data = [ - { name: '可用内存:', value: state.memInfo.maxmemory - state.memInfo.used_memory }, + { name: '可用内存:', value: maxMem - state.memInfo.used_memory }, { name: '已用内存:', value: state.memInfo.used_memory,