Use all available CPUs

This commit is contained in:
Tomás Senart
2013-08-14 18:24:20 +02:00
parent c8261d7cdd
commit 06a27404fa

View File

@@ -8,9 +8,14 @@ import (
"math/rand"
"net/http"
"os"
"runtime"
"time"
)
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
func main() {
var (
// Flags