mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-14 20:17:17 +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 {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user