fix bugs
This commit is contained in:
parent
eb48a66134
commit
17f11d876d
@ -744,12 +744,12 @@ void JsonData::DataNodeStatusCheck() {
|
|||||||
if (lTimeTemp > onlineCheck) {
|
if (lTimeTemp > onlineCheck) {
|
||||||
zlog_warn(zct, "offline DataNodeStatusCheck mac = %s lNowTime = %d,llastTime = %d,interval = %s", mac.c_str(),lNowTime, llastTime);
|
zlog_warn(zct, "offline DataNodeStatusCheck mac = %s lNowTime = %d,llastTime = %d,interval = %s", mac.c_str(),lNowTime, llastTime);
|
||||||
char whereCon[32] = {0};
|
char whereCon[32] = {0};
|
||||||
sprintf(whereCon, "dataNodeNo='%s'", mac.c_str());
|
sprintf(whereCon, "mac='%s'", mac.c_str());
|
||||||
sqlite_db_ctrl::instance().UpdateTableData(T_SENSOR_BT_INFO(TNAME), "status='0'", whereCon);
|
sqlite_db_ctrl::instance().UpdateTableData(T_SENSOR_BT_INFO(TNAME), "status='0'", whereCon);
|
||||||
count++;
|
count++;
|
||||||
} else {
|
} else {
|
||||||
char whereCon[32] = {0};
|
char whereCon[32] = {0};
|
||||||
sprintf(whereCon, "dataNodeNo='%s'", mac.c_str());
|
sprintf(whereCon, "mac='%s'", mac.c_str());
|
||||||
sqlite_db_ctrl::instance().UpdateTableData(T_SENSOR_BT_INFO(TNAME), "status='1'", whereCon);
|
sqlite_db_ctrl::instance().UpdateTableData(T_SENSOR_BT_INFO(TNAME), "status='1'", whereCon);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user