From 4859f72dbae5c7f6ec0c0ae4842e4629620a3311 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Wed, 6 Jul 2022 01:45:26 +0200 Subject: [PATCH] fixed lower limit not being reachable --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 0889703..3ef4756 100644 --- a/main.go +++ b/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)