Fix go program and run mode in config
This commit is contained in:
@@ -3,6 +3,7 @@ package main
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
"strconv"
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
@@ -117,11 +118,11 @@ func init() {
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
|
||||||
str_debug := os.Getenv("debug")
|
// str_debug := os.Getenv("debug")
|
||||||
str_threads := os.Getenv("threads")
|
str_threads := os.Getenv("threads")
|
||||||
|
|
||||||
threads, _ := strconv.Atoi(str_threads)
|
threads, _ := strconv.Atoi(str_threads)
|
||||||
debug, _ := strconv.ParseBool(str_debug)
|
// debug, _ := strconv.ParseBool(str_debug)
|
||||||
|
|
||||||
//startTime := time.Now()
|
//startTime := time.Now()
|
||||||
results := boundedParallelGet(checks, threads)
|
results := boundedParallelGet(checks, threads)
|
||||||
|
|||||||
@@ -58,7 +58,7 @@ class PluginRemotesupportConfig extends CommonDBTM {
|
|||||||
echo "<tr>";
|
echo "<tr>";
|
||||||
echo "<td >" . __('Run Mode:') . "</td>";
|
echo "<td >" . __('Run Mode:') . "</td>";
|
||||||
echo "<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>";
|
||||||
echo "<td >" . __('EasyNoVNC Installed:') . "</td>";
|
echo "<td >" . __('EasyNoVNC Installed:') . "</td>";
|
||||||
echo "<td>";
|
echo "<td>";
|
||||||
|
|||||||
Reference in New Issue
Block a user