diff --git a/check_status.go b/check_status.go index 1f80a2a..b9de755 100644 --- a/check_status.go +++ b/check_status.go @@ -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) diff --git a/inc/config.class.php b/inc/config.class.php index f13228c..18b3309 100644 --- a/inc/config.class.php +++ b/inc/config.class.php @@ -58,7 +58,7 @@ class PluginRemotesupportConfig extends CommonDBTM { echo ""; echo "" . __('Run Mode:') . ""; echo ""; - Dropdown::showFromArray('run_mode', array('None' => 'None','Serial'=>'Serial','Parallel' => 'Parallel'), array('value' => 'Serial')); + Dropdown::showFromArray('run_mode', array('None' => 'None','Serial'=>'Serial','Parallel' => 'Parallel'), array('value' => $my_config['run_mode'])); echo ""; echo "" . __('EasyNoVNC Installed:') . ""; echo "";