fixed lower limit not being reachable
This commit is contained in:
2
main.go
2
main.go
@@ -111,7 +111,7 @@ func (m UploadManager) pingWorker() error {
|
||||
}
|
||||
|
||||
log.Infof("ping %s over threshold detected, starting extended pings...", stats.AvgRtt)
|
||||
for stats.AvgRtt.Milliseconds() >= conf.ThrottlePingThreshold && m.isBWInRange(up-lastStep*2) {
|
||||
for stats.AvgRtt.Milliseconds() >= conf.ThrottlePingThreshold {
|
||||
stats, err = doPing(conf.Host, conf.ConformationPPP, time.Second)
|
||||
if err != nil {
|
||||
log.Warningf("ping to %s failed: %v", conf.Host, err)
|
||||
|
Reference in New Issue
Block a user