mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 04:16:13 +00:00
1 file changed
+1
-1
+1
-1
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user