From b086eeb08caf302f0e997f963e4e92ff500d4de2 Mon Sep 17 00:00:00 2001 From: shenjack <3695888@qq.com> Date: Thu, 25 Jan 2024 22:14:25 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=80=E4=B8=8B=20bmclapi?= =?UTF-8?q?=20=E6=B1=87=E6=8A=A5=E6=95=B0=E6=8D=AE=E7=9A=84=E7=BB=86?= =?UTF-8?q?=E8=8A=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index 08c5ba14..bedaf39e 100644 --- a/main.py +++ b/main.py @@ -233,9 +233,9 @@ async def add_message(data: Dict[str, Any]): report_msg = ( "OpenBMCLAPI 状态:\n" - f"在线节点: {online_node} 带宽: {online_bandwidth}Mbps\n" - f"实时负载带宽: {data_bandwidth}Mbps 负载: {load_str}%\n" - f"当日 总请求: {data_hits} 总数据量: {data_bytes}" + f"在线节点: {online_node} 带宽: {online_bandwidth}Mbps\n" + f"实时负载带宽: {data_bandwidth:.5f}Mbps 负载: {load_str:.3f}%\n" + f"当日 总请求: {data_hits} 总数据量: {data_bytes / 1024 / 1024:.3f}MB" ) await sio.emit( "sendMessage",