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)
|
||||
|
||||
@@ -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>";
|
||||
|
||||
Reference in New Issue
Block a user