Fix go program and run mode in config
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"strconv"
|
||||
"net/http"
|
||||
"time"
|
||||
"io/ioutil"
|
||||
@@ -117,11 +118,11 @@ func init() {
|
||||
|
||||
func main() {
|
||||
|
||||
str_debug := os.Getenv("debug")
|
||||
// str_debug := os.Getenv("debug")
|
||||
str_threads := os.Getenv("threads")
|
||||
|
||||
threads, _ := strconv.Atoi(str_threads)
|
||||
debug, _ := strconv.ParseBool(str_debug)
|
||||
// debug, _ := strconv.ParseBool(str_debug)
|
||||
|
||||
//startTime := time.Now()
|
||||
results := boundedParallelGet(checks, threads)
|
||||
|
||||
Reference in New Issue
Block a user