Fix displayed value of process cpu limit

This commit is contained in:
Ingo Oppermann
2025-10-29 15:22:16 +01:00
parent d6c974460f
commit db9154608e

View File

@@ -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
}