服务相关流量统计增加Header

This commit is contained in:
GoEdgeLab
2022-03-26 12:29:34 +08:00
parent 597b18f493
commit bcaa1426b0
4 changed files with 25 additions and 6 deletions

View File

@@ -101,7 +101,7 @@ func (this *TrafficStatManager) Add(serverId int64, domain string, bytes int64,
this.totalRequests++
timestamp := utils.FloorUnixTime(300)
var timestamp = utils.FloorUnixTime(300)
key := strconv.FormatInt(timestamp, 10) + strconv.FormatInt(serverId, 10)
this.locker.Lock()