Reset CaptureBandwidth to 0 on startup and after failed connection
parent
6381601ba2
commit
2576c5dfc5
|
@ -248,8 +248,8 @@ int main(int argc, char *argv[]) {
|
|||
monitor->SetHeartbeatTime(now);
|
||||
|
||||
std::string sql = stringtf(
|
||||
"INSERT INTO Monitor_Status (MonitorId,Status,CaptureFPS,AnalysisFPS)"
|
||||
" VALUES (%u, 'Running',0,0) ON DUPLICATE KEY UPDATE Status='Running',CaptureFPS=0,AnalysisFPS=0",
|
||||
"INSERT INTO Monitor_Status (MonitorId,Status,CaptureFPS,AnalysisFPS,CaptureBandwidth)"
|
||||
" VALUES (%u, 'Running',0,0,0) ON DUPLICATE KEY UPDATE Status='Running',CaptureFPS=0,AnalysisFPS=0,CaptureBandwidth=0",
|
||||
monitor->Id());
|
||||
zmDbDo(sql);
|
||||
|
||||
|
|
Loading…
Reference in New Issue