fix bugs
This commit is contained in:
parent
eb48a66134
commit
17f11d876d
@ -744,12 +744,12 @@ void JsonData::DataNodeStatusCheck() {
|
||||
if (lTimeTemp > onlineCheck) {
|
||||
zlog_warn(zct, "offline DataNodeStatusCheck mac = %s lNowTime = %d,llastTime = %d,interval = %s", mac.c_str(),lNowTime, llastTime);
|
||||
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);
|
||||
count++;
|
||||
} else {
|
||||
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);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user