Use the correct CPU period when throttling servers; closes pterodactyl/panel#4102
This commit is contained in:
parent
7fa7cc313f
commit
203a2091a0
|
@ -118,7 +118,7 @@ func (l Limits) AsContainerResources() container.Resources {
|
|||
// @see https://github.com/pterodactyl/panel/issues/3988
|
||||
if l.CpuLimit > 0 {
|
||||
resources.CPUQuota = l.CpuLimit * 1_000
|
||||
resources.CPUPeriod = 100_00
|
||||
resources.CPUPeriod = 100_000
|
||||
resources.CPUShares = 1024
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user