mirror of
https://github.com/ehang-io/nps.git
synced 2025-09-24 05:55:44 +00:00
change window calculation, bandwidth calculation
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user