From ad4aac51d0f5ba7b9a7c96e3dba099ca78fd392b Mon Sep 17 00:00:00 2001 From: ssongliu <73214554+ssongliu@users.noreply.github.com> Date: Thu, 11 Jan 2024 16:18:50 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BC=98=E5=8C=96=20Redis=20=E7=8A=B6?= =?UTF-8?q?=E6=80=81=E6=98=BE=E7=A4=BA=20(#3578)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Refs #3576 --- frontend/src/lang/modules/en.ts | 5 +++-- frontend/src/lang/modules/tw.ts | 5 +++-- frontend/src/lang/modules/zh.ts | 5 +++-- .../src/views/database/redis/setting/status/index.vue | 10 ++++++++++ 4 files changed, 19 insertions(+), 6 deletions(-) diff --git a/frontend/src/lang/modules/en.ts b/frontend/src/lang/modules/en.ts index 9315b0672..6f2686adf 100644 --- a/frontend/src/lang/modules/en.ts +++ b/frontend/src/lang/modules/en.ts @@ -483,8 +483,9 @@ const message = { tcpPort: 'Current listening port', uptimeInDays: 'Days in operation', connectedClients: 'Number of connected clients', - usedMemory: 'Redis indicates the peak value of memory allocated historically', - usedMemoryRss: 'Total system memory used by Redis', + usedMemory: 'Current memory usage of Redis', + usedMemoryRss: 'Memory size requested from the operating system', + usedMemoryPeak: 'Peak memory consumption of Redis', memFragmentationRatio: 'Memory fragmentation ratio', totalConnectionsReceived: 'Total number of clients connected since run', totalCommandsProcessed: 'The total number of commands executed since the run', diff --git a/frontend/src/lang/modules/tw.ts b/frontend/src/lang/modules/tw.ts index 6dfa6c595..bd41fb253 100644 --- a/frontend/src/lang/modules/tw.ts +++ b/frontend/src/lang/modules/tw.ts @@ -471,8 +471,9 @@ const message = { tcpPort: '當前監聽端口', uptimeInDays: '已運行天數', connectedClients: '連接的客戶端數量', - usedMemory: 'Redis 歷史分配內存的峰值', - usedMemoryRss: 'Redis 當前占用的系統內存總量', + usedMemory: '當前 Redis 使用的內存大小', + usedMemoryRss: '向操作系统申請的內存大小', + usedMemoryPeak: 'Redis 的內存消耗峰值', memFragmentationRatio: '內存碎片比率', totalConnectionsReceived: '運行以來連接過的客戶端的總數量', totalCommandsProcessed: '運行以來執行過的命令的總數量', diff --git a/frontend/src/lang/modules/zh.ts b/frontend/src/lang/modules/zh.ts index 09193b5b4..97dd17a31 100644 --- a/frontend/src/lang/modules/zh.ts +++ b/frontend/src/lang/modules/zh.ts @@ -471,8 +471,9 @@ const message = { tcpPort: '当前监听端口', uptimeInDays: '已运行天数', connectedClients: '连接的客户端数量', - usedMemory: 'Redis 历史分配内存的峰值', - usedMemoryRss: 'Redis 当前占用的系统内存总量', + usedMemory: '当前 Redis 使用的内存大小', + usedMemoryRss: '向操作系统申请的内存大小', + usedMemoryPeak: 'Redis 的内存消耗峰值', memFragmentationRatio: '内存碎片比率', totalConnectionsReceived: '运行以来连接过的客户端的总数量', totalCommandsProcessed: '运行以来执行过的命令的总数量', diff --git a/frontend/src/views/database/redis/setting/status/index.vue b/frontend/src/views/database/redis/setting/status/index.vue index a7874e30a..1eb4f971a 100644 --- a/frontend/src/views/database/redis/setting/status/index.vue +++ b/frontend/src/views/database/redis/setting/status/index.vue @@ -54,6 +54,15 @@ {{ $t('database.usedMemory') }} + + + + {{ redisStatus.used_memory_peak }} + {{ $t('database.usedMemoryPeak') }} + +