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)

View File

@@ -58,7 +58,7 @@ class PluginRemotesupportConfig extends CommonDBTM {
echo "<tr>";
echo "<td >" . __('Run Mode:') . "</td>";
echo "<td>";
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 "</td>";
echo "<td >" . __('EasyNoVNC Installed:') . "</td>";
echo "<td>";