Reset CaptureBandwidth to 0 on startup and after failed connection

pull/3751/head
Isaac Connor 2023-08-09 10:25:31 -04:00
parent 6381601ba2
commit 2576c5dfc5
1 changed files with 2 additions and 2 deletions

View File

@ -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);