Skip to content

Commit 20d7ef6

Browse files
committed
chore: limit weight boost
1 parent 7f2b79e commit 20d7ef6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adapter/outboundgroup/smart.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1392,7 +1392,7 @@ func (s *Smart) checkNodeQualityDegradation(
13921392
if selectedProxy != nil {
13931393
cacheKey := smart.FormatDBKey(smart.KeyTypeStats, s.configName, s.Name(), target, (*selectedProxy).Name())
13941394
record := s.store.GetOrCreateAtomicRecord(cacheKey, s.Name(), s.configName, target, (*selectedProxy).Name())
1395-
boostedWeight := math.Max(record.GetWeight(weightType), oldWeight * 1.5)
1395+
boostedWeight := math.Max(record.GetWeight(weightType), oldWeight)
13961396
record.SetWeight(weightType, boostedWeight, isUDP)
13971397
statsSnapshot := record.CreateStatsSnapshot()
13981398
s.saveStatsRecord(target, *selectedProxy, statsSnapshot, now)

0 commit comments

Comments
 (0)