feat:关于页面&对接websocket

This commit is contained in:
zy7y
2022-09-17 17:57:09 +08:00
parent 8da0127729
commit 8e37bba724
21 changed files with 5639 additions and 118 deletions

View File

@@ -38,5 +38,10 @@ def get_system_info():
"cpu": f"{random.random() * 100: .2}",
"memory": f"{random.random() * 100: .2}",
"disk": f"{random.random() * 100: .2}",
}
},
"performance": {
"rps": f"{random.random() * random.randint(1, 50): .2}",
"time": f"{random.random() * random.randint(1, 50): .2}",
"user": f"{random.randint(1, 50)}",
},
}