mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-14 03:04:37 -04:00
parent
8559f5c29f
commit
415ca9673d
@ -1883,7 +1883,7 @@ func (s *Site) newPage(kind string, sections ...string) *pageState {
|
|||||||
|
|
||||||
func getGoMaxProcs() int {
|
func getGoMaxProcs() int {
|
||||||
if gmp := os.Getenv("GOMAXPROCS"); gmp != "" {
|
if gmp := os.Getenv("GOMAXPROCS"); gmp != "" {
|
||||||
if p, err := strconv.Atoi(gmp); err != nil {
|
if p, err := strconv.Atoi(gmp); err == nil {
|
||||||
return p
|
return p
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user