mirror of
https://github.com/schollz/croc.git
synced 2025-10-11 05:11:06 +02:00
use all cpu
This commit is contained in:
parent
f62459e1a4
commit
68896f6ef7
1 changed files with 2 additions and 0 deletions
2
main.go
2
main.go
|
@ -8,6 +8,7 @@ import (
|
|||
"log"
|
||||
"os"
|
||||
"path/filepath"
|
||||
"runtime"
|
||||
"time"
|
||||
|
||||
humanize "github.com/dustin/go-humanize"
|
||||
|
@ -22,6 +23,7 @@ var codePhrase string
|
|||
var cr *croc.Croc
|
||||
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
app := cli.NewApp()
|
||||
app.Name = "croc"
|
||||
if version == "" {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue