From 8cd78d7deaf3eca8cb55f9c1a4989c94f083696b Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 10 May 2024 17:25:19 +0800 Subject: [PATCH 1/3] Update index.js --- route/static/app/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/static/app/index.js b/route/static/app/index.js index b354c2660..9f089d53e 100755 --- a/route/static/app/index.js +++ b/route/static/app/index.js @@ -1409,7 +1409,7 @@ var index = { $("#readBytes").html(toSize(iostat_select.read_bytes)); $("#writeBytes").html(toSize(iostat_select.write_bytes)); $("#diskIops").html(iostat_select.read_count); - $("#diskTime").html(iostat_select.write_time); + $("#diskTime").html(iostat_select.write_time +" ms"); $("#core").html(net.cpu[1] + " " + lan.index.cpu_core); From aa50658245b6ddac729019affa457bdc4112793b Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 10 May 2024 17:36:06 +0800 Subject: [PATCH 2/3] update --- class/core/system_api.py | 4 ++-- route/static/app/index.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/class/core/system_api.py b/class/core/system_api.py index c1779b2cf..391c3588c 100755 --- a/class/core/system_api.py +++ b/class/core/system_api.py @@ -686,8 +686,8 @@ class system_api: for disk_name in diskio_group.keys(): diskInfo[disk_name] = {} # print('disk_name',disk_name) - # print('diskio_group',diskio_group[disk_name]) - # print('diskio_cache',diskio_cache[disk_name]) + # print(diskio_group[disk_name].write_time , diskio_cache[disk_name].write_time) + # print(diskio_group[disk_name].write_count , diskio_cache[disk_name].write_count) diskInfo[disk_name]['read_count'] = int((diskio_group[disk_name].read_count - diskio_cache[disk_name].read_count) / stime) diskInfo[disk_name]['write_count'] = int((diskio_group[disk_name].write_count - diskio_cache[disk_name].write_count) / stime) diff --git a/route/static/app/index.js b/route/static/app/index.js index 9f089d53e..de94a797e 100755 --- a/route/static/app/index.js +++ b/route/static/app/index.js @@ -1408,8 +1408,8 @@ var index = { $("#readBytes").html(toSize(iostat_select.read_bytes)); $("#writeBytes").html(toSize(iostat_select.write_bytes)); - $("#diskIops").html(iostat_select.read_count); - $("#diskTime").html(iostat_select.write_time +" ms"); + $("#diskIops").html(iostat_select.read_count+":"+iostat_select.write_count+ " 次"); + $("#diskTime").html(iostat_select.read_time+":"+iostat_select.write_time +" ms"); $("#core").html(net.cpu[1] + " " + lan.index.cpu_core); From 86a3922d4fcb93686d2e8e1165c00ebb1a975866 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Fri, 10 May 2024 17:38:48 +0800 Subject: [PATCH 3/3] Update index.html --- route/templates/default/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/route/templates/default/index.html b/route/templates/default/index.html index 92574f0fd..dd74bd55d 100755 --- a/route/templates/default/index.html +++ b/route/templates/default/index.html @@ -132,7 +132,7 @@

读取

0

写入

0

每秒读写

0
-

IO延迟

0
+

读写IO延迟

0