X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/ecb3811b1ae00eb71bb1f27acbd2c6de651dc6ab..3b7377b215a7d46c7d03949d28ecebf87ccbe792:/projects/stargazer/settings.cpp?ds=sidebyside diff --git a/projects/stargazer/settings.cpp b/projects/stargazer/settings.cpp index 84de336b..c863fbbd 100644 --- a/projects/stargazer/settings.cpp +++ b/projects/stargazer/settings.cpp @@ -41,7 +41,7 @@ using namespace std; //----------------------------------------------------------------------------- SETTINGS::SETTINGS() : confDir("/etc/stargazer"), - scriptDir("/etc/stargazer"), + scriptsDir("/etc/stargazer"), pidFile("/var/run/stargazer.pid"), monitoring(false), detailStatWritePeriod(dsPeriod_1_6), @@ -63,7 +63,7 @@ SETTINGS::SETTINGS() //----------------------------------------------------------------------------- SETTINGS::SETTINGS(const std::string & cd) : confDir(cd), - scriptDir(cd), + scriptsDir(cd), monitoring(false), detailStatWritePeriod(dsPeriod_1_6), statWritePeriod(10), @@ -84,7 +84,7 @@ SETTINGS::SETTINGS(const std::string & cd) //----------------------------------------------------------------------------- SETTINGS::SETTINGS(const SETTINGS & rval) : confDir(rval.confDir), - scriptDir(rval.scriptDir), + scriptsDir(rval.scriptsDir), pidFile(rval.pidFile), monitoring(rval.monitoring), detailStatWritePeriod(dsPeriod_1_6), @@ -258,7 +258,7 @@ while (node) { if (strcasecmp(node->getName(), "ScriptDir") == 0) { - scriptDir = node->getValue(0); + scriptsDir = node->getValue(0); //printfd(__FILE__, "LogFile: %s\n", logFile.c_str()); } @@ -317,7 +317,7 @@ while (node) if (strcasecmp(node->getName(), "ExecutersNum") == 0) { - if (ParseUnsignedInRange(node->getValue(0), 1, 1024, static_cast(&executersNum)) != 0) + if (ParseUnsignedInRange(node->getValue(0), 1, 1024, &executersNum) != 0) { strError = "Incorrect ExecutersNum value: \'" + string(node->getValue(0)) + "\'"; return -1;