modify wave triger bugs
This commit is contained in:
parent
2c19d5b71c
commit
2049f16ce2
@ -9,9 +9,9 @@
|
|||||||
|
|
||||||
typedef struct statfs DISK, *pDISK;
|
typedef struct statfs DISK, *pDISK;
|
||||||
|
|
||||||
#define SECTION_MAX_LEN 256
|
#define SECTION_MAX_LEN 1024
|
||||||
#define STRVALUE_MAX_LEN 256
|
#define STRVALUE_MAX_LEN 1024
|
||||||
#define LINE_CONTENT_MAX_LEN 256
|
#define LINE_CONTENT_MAX_LEN 1024
|
||||||
//配置文件位置
|
//配置文件位置
|
||||||
#define NETWORK "/etc/network/interfaces"
|
#define NETWORK "/etc/network/interfaces"
|
||||||
#define SYSTEMINFOFILE "/opt/configenv/SystemInfo.json" //系统信息
|
#define SYSTEMINFOFILE "/opt/configenv/SystemInfo.json" //系统信息
|
||||||
|
|||||||
@ -1573,7 +1573,7 @@ std::string JsonData::JsonCmd_Cgi_69(Param_69 ¶m){
|
|||||||
char whereCon[512] = {0};
|
char whereCon[512] = {0};
|
||||||
char updateSql[256] = {0};
|
char updateSql[256] = {0};
|
||||||
if (param.mMode == 1) {
|
if (param.mMode == 1) {
|
||||||
trigerThresholdEnable = writeIntValue("config", "trigerThresholdEnable", param.trigerThresholdEnable, (char *)GlobalConfig::Config_G.c_str());
|
trigerThresholdEnable = writeIntValue("config", "trigerThresholdEnable", param.trigerThresholdEnable ? 1:0, (char *)GlobalConfig::Config_G.c_str());
|
||||||
if(param.vecParam69.size() > 0){
|
if(param.vecParam69.size() > 0){
|
||||||
for (size_t i = 0; i < param.vecParam69.size(); i++)
|
for (size_t i = 0; i < param.vecParam69.size(); i++)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -634,6 +634,7 @@ std::string LocalServer::HandleCgi_cmd(std::string &pData) {
|
|||||||
param.mMode = 0;
|
param.mMode = 0;
|
||||||
}
|
}
|
||||||
Json::Value recvDataNodeNo = recvBody["DataNodeNo"];
|
Json::Value recvDataNodeNo = recvBody["DataNodeNo"];
|
||||||
|
param.trigerThresholdEnable = recvBody["threshold"].asBool();
|
||||||
if (recvDataNodeNo.size() > 0)
|
if (recvDataNodeNo.size() > 0)
|
||||||
{
|
{
|
||||||
for (size_t i = 0; i < recvDataNodeNo.size(); i++) {
|
for (size_t i = 0; i < recvDataNodeNo.size(); i++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user