hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit 415ca9673d3bd3c06ab94f3d83897c892fce5f27
parent 8559f5c29f20b7b5188f93f8b1d9e510e3dee4f5
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Fri,  5 Apr 2019 09:31:16 +0200

hugolib: Fix the GOMAXPROCS env get

Fixes #5813

Diffstat:
Mhugolib/site.go | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
 		}
 	}