From f239e28f6fa552dd2e002b486ce2cd9792174cd6 Mon Sep 17 00:00:00 2001 From: lxb <1580622474@qq.com> Date: Thu, 5 Dec 2024 13:07:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E4=B8=80=E4=B8=8B?= =?UTF-8?q?=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client.py | 1 + client_config.json | 2 +- server.py | 3 --- web/index.html | 11 +++++++++++ 4 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 web/index.html diff --git a/client.py b/client.py index e4e6545..e18f25a 100644 --- a/client.py +++ b/client.py @@ -123,6 +123,7 @@ def get_memory_info(error_dict): def get_networks_info(error_dict): # net_io = psutil.net_io_counters() # print(net_io) + # todo pass # endregion diff --git a/client_config.json b/client_config.json index eff9a25..107d020 100644 --- a/client_config.json +++ b/client_config.json @@ -3,7 +3,7 @@ "title": "174", "interval": 3.0, "note": "", - "enable": ["gpu", "cpu", "memory", "storage", "network"], + "enable": ["gpu", "cpu", "memory", "storage"], "storage_list":[ "/", "/media/D", diff --git a/server.py b/server.py index be6ad5c..0b2da57 100644 --- a/server.py +++ b/server.py @@ -1,9 +1,6 @@ from flask import Flask, jsonify, request -from datetime import datetime from flask_cors import CORS -import threading import json -import time #region 全局 diff --git a/web/index.html b/web/index.html new file mode 100644 index 0000000..2b89fbf --- /dev/null +++ b/web/index.html @@ -0,0 +1,11 @@ + + + + + + 服务器信息 + + + + + \ No newline at end of file