From 203a2091a071cecef4f070df2a149415012d57d9 Mon Sep 17 00:00:00 2001 From: DaneEveritt Date: Mon, 30 May 2022 17:45:41 -0400 Subject: [PATCH] Use the correct CPU period when throttling servers; closes pterodactyl/panel#4102 --- environment/settings.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/environment/settings.go b/environment/settings.go index dcd7c3a..def91f6 100644 --- a/environment/settings.go +++ b/environment/settings.go @@ -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 }