mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
add gomaxprocs
This commit is contained in:
@@ -41,6 +41,8 @@ func (args) Version() string {
|
||||
var params args
|
||||
|
||||
func main() {
|
||||
runtime.GOMAXPROCS(runtime.NumCPU())
|
||||
|
||||
arg.MustParse(¶ms)
|
||||
|
||||
if params.Path == "" {
|
||||
@@ -56,6 +58,7 @@ func main() {
|
||||
log.Init(params.LogPath, params.WebLogPath)
|
||||
fmt.Println("=========== START ===========")
|
||||
fmt.Println("TorrServer", version.Version+",", runtime.Version())
|
||||
fmt.Println("CPU Num:", runtime.NumCPU())
|
||||
if params.HttpAuth {
|
||||
log.TLogln("Use HTTP Auth file", settings.Path+"/accs.db")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user