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