package buildstep import ( "os" "git.novox.be/novox/mesh-sdk/go/buildcpu" ) // NodeLimits is what one step of a build module is held to (novox/hq ADR 0553 ยง4): the node's processor share from the // word the composer gives the module (buildcpu.ShareWord), divided by the module's own capacity, own, over the machine's // processors. Without the word, no thread limit: Threads is 0. func NodeLimits(own int) buildcpu.Limits { return buildcpu.FromWords(os.Getenv, own) }