mirror of
https://gitee.com/dromara/mayfly-go
synced 2025-11-03 16:00:25 +08:00
redis监控信息面板重构
This commit is contained in:
@@ -185,8 +185,9 @@ const initCharts = () => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const initMemStats = () => {
|
const initMemStats = () => {
|
||||||
|
let maxMem = state.memInfo.maxmemory === '0' ? state.memInfo.total_system_memory : state.memInfo.maxmemory
|
||||||
const data = [
|
const data = [
|
||||||
{ name: '可用内存:', value: state.memInfo.maxmemory - state.memInfo.used_memory },
|
{ name: '可用内存:', value: maxMem - state.memInfo.used_memory },
|
||||||
{
|
{
|
||||||
name: '已用内存:',
|
name: '已用内存:',
|
||||||
value: state.memInfo.used_memory,
|
value: state.memInfo.used_memory,
|
||||||
|
|||||||
Reference in New Issue
Block a user