mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-05 01:20:26 +08:00
[统计]记录流量(以5分钟作为间隔)
This commit is contained in:
@@ -199,7 +199,14 @@ func (this *HTTPRequest) doBegin() {
|
||||
|
||||
// 结束调用
|
||||
func (this *HTTPRequest) doEnd() {
|
||||
// 记录日志
|
||||
this.log()
|
||||
|
||||
// 流量统计
|
||||
// TODO 增加是否开启开关
|
||||
if this.Server != nil {
|
||||
SharedTrafficStatManager.Add(this.Server.Id, this.writer.sentBodyBytes)
|
||||
}
|
||||
}
|
||||
|
||||
// 原始的请求URI
|
||||
|
||||
Reference in New Issue
Block a user