修改一下 bmclapi 汇报数据的细节

This commit is contained in:
shenjack 2024-01-25 22:14:25 +08:00
parent 5c7dfe9e88
commit b086eeb08c
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -234,8 +234,8 @@ async def add_message(data: Dict[str, Any]):
report_msg = ( report_msg = (
"OpenBMCLAPI 状态:\n" "OpenBMCLAPI 状态:\n"
f"在线节点: {online_node} 带宽: {online_bandwidth}Mbps\n" f"在线节点: {online_node} 带宽: {online_bandwidth}Mbps\n"
f"实时负载带宽: {data_bandwidth}Mbps 负载: {load_str}%\n" f"实时负载带宽: {data_bandwidth:.5f}Mbps 负载: {load_str:.3f}%\n"
f"当日 总请求: {data_hits} 总数据量: {data_bytes}" f"当日 总请求: {data_hits} 总数据量: {data_bytes / 1024 / 1024:.3f}MB"
) )
await sio.emit( await sio.emit(
"sendMessage", "sendMessage",