mirror of
https://github.com/datarhei/core.git
synced 2025-10-12 03:10:07 +08:00
Check for identical configs on process update
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user