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 b354c2660..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); + $("#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); 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每秒读写
0IO延迟
0读写IO延迟
0