Skip to content

Commit

Permalink
limit ram
Browse files Browse the repository at this point in the history
  • Loading branch information
Distortions81 committed Jun 21, 2023
1 parent 86c7601 commit 29581be
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@ package main
import (
"flag"
"log"
"runtime/debug"
)

func main() {
var runWizard bool

//KB, MB
debug.SetMemoryLimit(1024 * 1024 * 100)

//Launch arguments
flag.StringVar(&configPath, "configPath", defaultConfigPath, "config file path")
var makeConfig bool
Expand Down

0 comments on commit 29581be

Please sign in to comment.