网站列表增加QPS和攻击QPS信息

This commit is contained in:
刘祥超
2023-07-07 18:51:36 +08:00
parent 87a81f59c7
commit ac19f06b6c
5 changed files with 98 additions and 9 deletions

View File

@@ -326,7 +326,7 @@ func TestServerDAO_FindBool(t *testing.T) {
func TestServerDAO_UpdateServerBandwidth(t *testing.T) {
var dao = models.NewServerDAO()
var tx *dbs.Tx
err := dao.UpdateServerBandwidth(tx, 1, timeutil.FormatTime("YmdHi", time.Now().Unix()/300*300), 1024)
err := dao.UpdateServerBandwidth(tx, 1, timeutil.FormatTime("YmdHi", time.Now().Unix()/300*300), 1024, 1, 0)
if err != nil {
t.Fatal(err)
}