fixed lower limit not being reachable

This commit is contained in:
2022-07-06 01:45:26 +02:00
parent 1baaeb6cb2
commit 4859f72dba

View File

@@ -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)