hugolib: Fix the GOMAXPROCS env get

Fixes #5813
This commit is contained in:
Bjørn Erik Pedersen committed 2019-04-05 09:57:43 +02:00
1 parent 8559f5c29f
commit 415ca9673d
1 file changed
+1 -1
+1 -1
View File
@@ -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
} }
} }