From 07678cacd443fb0593d39440a26b00c089c6166f Mon Sep 17 00:00:00 2001 From: Jaroslav Drzik Date: Wed, 22 Dec 2021 20:20:36 +0100 Subject: [PATCH] Fix go program and run mode in config --- check_status.go | 5 +++-- inc/config.class.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) 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 "";