mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
parent
8559f5c29f
commit
415ca9673d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue