修改一下 bmclapi 汇报数据的细节
This commit is contained in:
parent
5c7dfe9e88
commit
b086eeb08c
4
main.py
4
main.py
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user