//-----------------------------------------------------------------------------
SETTINGS::SETTINGS()
: confDir("/etc/stargazer"),
- scriptDir("/etc/stargazer"),
+ scriptsDir("/etc/stargazer"),
pidFile("/var/run/stargazer.pid"),
monitoring(false),
detailStatWritePeriod(dsPeriod_1_6),
//-----------------------------------------------------------------------------
SETTINGS::SETTINGS(const std::string & cd)
: confDir(cd),
- scriptDir(cd),
+ scriptsDir(cd),
monitoring(false),
detailStatWritePeriod(dsPeriod_1_6),
statWritePeriod(10),
//-----------------------------------------------------------------------------
SETTINGS::SETTINGS(const SETTINGS & rval)
: confDir(rval.confDir),
- scriptDir(rval.scriptDir),
+ scriptsDir(rval.scriptsDir),
pidFile(rval.pidFile),
monitoring(rval.monitoring),
detailStatWritePeriod(dsPeriod_1_6),
{
if (strcasecmp(node->getName(), "ScriptDir") == 0)
{
- scriptDir = node->getValue(0);
+ scriptsDir = node->getValue(0);
//printfd(__FILE__, "LogFile: %s\n", logFile.c_str());
}
if (strcasecmp(node->getName(), "ExecutersNum") == 0)
{
- if (ParseUnsignedInRange(node->getValue(0), 1, 1024, static_cast<unsigned *>(&executersNum)) != 0)
+ if (ParseUnsignedInRange(node->getValue(0), 1, 1024, &executersNum) != 0)
{
strError = "Incorrect ExecutersNum value: \'" + string(node->getValue(0)) + "\'";
return -1;