实现峰值带宽和平均带宽两种带宽算法

This commit is contained in:
刘祥超
2023-02-27 10:47:31 +08:00
parent 727ac23e17
commit 0933ae903b
14 changed files with 619 additions and 540 deletions

View File

@@ -35,7 +35,7 @@ type UserBandwidthStat struct {
UserId int64 `protobuf:"varint,2,opt,name=userId,proto3" json:"userId,omitempty"`
Day string `protobuf:"bytes,3,opt,name=day,proto3" json:"day,omitempty"`
TimeAt string `protobuf:"bytes,4,opt,name=timeAt,proto3" json:"timeAt,omitempty"`
Bytes int64 `protobuf:"varint,5,opt,name=bytes,proto3" json:"bytes,omitempty"`
Bytes int64 `protobuf:"varint,5,opt,name=bytes,proto3" json:"bytes,omitempty"` // 峰值带宽字节
}
func (x *UserBandwidthStat) Reset() {