Check for identical configs on process update

This commit is contained in:
Ingo Oppermann
2023-06-01 16:43:17 +02:00
parent a79cfa0c77
commit d652fd213b
7 changed files with 177 additions and 32 deletions

View File

@@ -3,7 +3,6 @@ package process
import (
"context"
"fmt"
"math"
"sync"
"time"
@@ -439,9 +438,10 @@ func (l *limiter) limitCPU(ctx context.Context, limit float64, interval time.Dur
if workingrate < 0 {
workingrate = limit
} else {
workingrate = math.Min(workingrate/pcpu*limit, 1)
}
// else {
// workingrate = math.Min(workingrate/pcpu*limit, 1)
//}
workingrate = lim