From 415ca9673d3bd3c06ab94f3d83897c892fce5f27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 5 Apr 2019 09:31:16 +0200 Subject: [PATCH] hugolib: Fix the GOMAXPROCS env get Fixes #5813 --- hugolib/site.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hugolib/site.go b/hugolib/site.go index 1bf2d639c..84ee7823c 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -1883,7 +1883,7 @@ func (s *Site) newPage(kind string, sections ...string) *pageState { func getGoMaxProcs() int { if gmp := os.Getenv("GOMAXPROCS"); gmp != "" { - if p, err := strconv.Atoi(gmp); err != nil { + if p, err := strconv.Atoi(gmp); err == nil { return p } }