Fix go program and run mode in config

This commit is contained in:
Jaroslav Drzik
2021-12-22 20:20:36 +01:00
parent 625c246ba9
commit 07678cacd4
2 changed files with 4 additions and 3 deletions

View File

@@ -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)