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 and every // build slot of the node, from the words the composer gives the module (buildcpu.ShareWord, buildcpu.SlotsWord), and the // machine's processors. A module told neither assumes every build seat beside it at its own capacity, own, so its steps // stay within the default share with the others'. func NodeLimits(own int) buildcpu.Limits { return buildcpu.FromWords(os.Getenv, own) }