mirror of
https://github.com/datarhei/core.git
synced 2025-12-24 13:07:56 +08:00
Fix displayed value of process cpu limit
This commit is contained in:
@@ -297,7 +297,8 @@ func NewLimiter(config LimiterConfig) (Limiter, error) {
|
||||
mode := "hard"
|
||||
if l.mode == LimitModeSoft {
|
||||
mode = "soft"
|
||||
l.cpu.SetLimit(l.cpu.Limit() / l.ncpu)
|
||||
l.cpu.SetLimit(config.CPU / 100 / l.ncpu)
|
||||
l.lastUsage.CPU.Limit = config.CPU
|
||||
l.ncpuFactor = l.ncpu
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user