mirror of https://github.com/schollz/croc.git
use all procs
This commit is contained in:
parent
7fea858252
commit
a7b8488040
2
main.go
2
main.go
|
@ -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 == "" {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue