use all procs

This commit is contained in:
Zack Scholl 2018-09-25 12:33:51 -07:00
parent 7fea858252
commit a7b8488040
2 changed files with 5 additions and 2 deletions

View File

@ -8,7 +8,6 @@ import (
"log"
"os"
"path/filepath"
"runtime"
"time"
humanize "github.com/dustin/go-humanize"
@ -23,7 +22,6 @@ var codePhrase string
var cr *croc.Croc
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
app := cli.NewApp()
app.Name = "croc"
if version == "" {

View File

@ -1,6 +1,7 @@
package croc
import (
"runtime"
"time"
"github.com/schollz/croc/src/logger"
@ -10,6 +11,10 @@ import (
"github.com/schollz/croc/src/zipper"
)
func init() {
runtime.GOMAXPROCS(runtime.NumCPU())
}
// Croc options
type Croc struct {
// Options for all