Skip to content
Permalink
Browse files

hugolib: Fix the GOMAXPROCS env get

Fixes #5813
  • Loading branch information...
bep committed Apr 5, 2019
1 parent 8559f5c commit 415ca9673d3bd3c06ab94f3d83897c892fce5f27
Showing with 1 addition and 1 deletion.
  1. +1 −1 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
}
}

0 comments on commit 415ca96

Please sign in to comment.
You can’t perform that action at this time.