💄 优化循环流量展示

This commit is contained in:
naiba
2021-11-11 09:40:10 +08:00
parent 57e556eea1
commit 6b3723461b
8 changed files with 18 additions and 7 deletions

View File

@@ -42,6 +42,8 @@ func addCycleTransferStatsInfo(alert *model.AlertRule) {
Name: alert.Name,
From: from,
To: from.Add(time.Hour * time.Duration(alert.Rules[j].CycleInterval)),
Max: uint64(alert.Rules[j].Max),
Min: uint64(alert.Rules[j].Min),
ServerName: make(map[uint64]string),
Transfer: make(map[uint64]uint64),
NextUpdate: make(map[uint64]time.Time),

View File

@@ -13,7 +13,7 @@ import (
pb "github.com/naiba/nezha/proto"
)
var Version = "v0.11.6" // !!记得修改 README 中的 badge 版本!!
var Version = "v0.11.7" // !!记得修改 README 中的 badge 版本!!
var (
Conf *model.Config