change window calculation, bandwidth calculation

This commit is contained in:
ffdfgdfg
2020-01-04 20:49:17 +08:00
parent f5fce6d1f4
commit 6bbe276b18
2 changed files with 65 additions and 9 deletions

View File

@@ -443,7 +443,7 @@ func (Self *bandwidth) Get() (bw float64) {
// The zero value, 0 for numeric types
bw = math.Float64frombits(atomic.LoadUint64(&Self.readBandwidth))
if bw <= 0 {
bw = 100
bw = 0
}
//logs.Warn(bw)
return