From 3350bf134728c57b994bb77c4deb1e80a50b410e Mon Sep 17 00:00:00 2001 From: Kol Influence <104323920+kolinfluence@users.noreply.github.com> Date: Fri, 15 Mar 2024 11:54:34 -0400 Subject: [PATCH] Update cpu.go --- thread/cpu.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/thread/cpu.go b/thread/cpu.go index 7942208..e398ceb 100644 --- a/thread/cpu.go +++ b/thread/cpu.go @@ -13,12 +13,11 @@ var ( ) // This function should be called from the main package or higher-level logic to define flags. -func DefineFlags() { - pflag.Uint16VarP(&CPUThread, "CPUThread", "t", 0, "prefork child id") -} func init() { NumCPU = uint16(runtime.NumCPU()) + pflag.Uint16VarP(&CPUThread, "CPUThread", "t", 0, "prefork child id") + pflag.Parse() //parse at cxcputhread as it's very important, preparsing with another "flag" module before calling cxcputhread } //cpu core 0 == 1