Skip to content

Commit

Permalink
Final-er adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
yunginnanet committed Dec 27, 2022
1 parent 6b4b4ea commit fce12fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scale_util.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func (p5 *ProxyEngine) scale() (sleep bool) {
totalChanFullNow := atomic.LoadInt64(&p5.stats.timesChannelFull)
accountedFor := atomic.LoadInt64(&p5.stats.badAccounted) + atomic.LoadInt64(&p5.stats.fullChanAccounted)
netFactors := (totalBadNow + totalChanFullNow) - accountedFor
if time.Since(p5.stats.accountingLastDone) > 400*time.Millisecond && netFactors > 0 {
if time.Since(p5.stats.accountingLastDone) > 600*time.Millisecond && netFactors > 0 {
bad = int64(netFactors)
if p5.DebugEnabled() {
p5.DebugLogger.Printf("accounting: %d bad, %d full, %d accounted, %d net factors",
Expand Down

0 comments on commit fce12fb

Please sign in to comment.