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,