From a18a49a7e94829444cccc6d9dcf8a69f552b5736 Mon Sep 17 00:00:00 2001 From: Allen-Hawk Date: Thu, 8 Aug 2024 10:37:12 +0800 Subject: [PATCH] Fix the issue of excessively long decimal points in memory under overview. Fix the issue of excessively long decimal points in memory under overview. --- .idea/.gitignore | 8 ++++++ .idea/compiler.xml | 17 +++++++++++++ .idea/encodings.xml | 17 +++++++++++++ .idea/jarRepositories.xml | 25 +++++++++++++++++++ .idea/misc.xml | 12 +++++++++ .idea/vcs.xml | 6 +++++ .../main/webapp/media/js/main/index/index.js | 4 +-- 7 files changed, 87 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/compiler.xml create mode 100644 .idea/encodings.xml create mode 100644 .idea/jarRepositories.xml create mode 100644 .idea/misc.xml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 000000000..35410cacd --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# 默认忽略的文件 +/shelf/ +/workspace.xml +# 基于编辑器的 HTTP 客户端请求 +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/compiler.xml b/.idea/compiler.xml new file mode 100644 index 000000000..5466e5acc --- /dev/null +++ b/.idea/compiler.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/encodings.xml b/.idea/encodings.xml new file mode 100644 index 000000000..36d7fd86d --- /dev/null +++ b/.idea/encodings.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml new file mode 100644 index 000000000..e88b417f2 --- /dev/null +++ b/.idea/jarRepositories.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/misc.xml b/.idea/misc.xml new file mode 100644 index 000000000..d5cd61439 --- /dev/null +++ b/.idea/misc.xml @@ -0,0 +1,12 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 000000000..35eb1ddfb --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/efak-web/src/main/webapp/media/js/main/index/index.js b/efak-web/src/main/webapp/media/js/main/index/index.js index a838a2c8b..b523035ab 100644 --- a/efak-web/src/main/webapp/media/js/main/index/index.js +++ b/efak-web/src/main/webapp/media/js/main/index/index.js @@ -507,8 +507,8 @@ $(function () { url: '/get/dashboard/mem/ajax', success: function (datas) { if (datas != null) { - $("#efak_dashboard_mem_chart_id").text(datas.mem + "%"); - refreshMemOrCpu(efak_dashboard_mem_chart, "mem", datas.mem); + $("#efak_dashboard_mem_chart_id").text(datas.mem.toFixed(2) + "%"); + refreshMemOrCpu(efak_dashboard_mem_chart, "mem", datas.mem.toFixed(2)); } } });