mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-11 03:45:19 -04:00
Reset CaptureBandwidth to 0 on startup and after failed connection
This commit is contained in:
1 parent
6381601ba2
commit
2576c5dfc5
1 file changed
+2
-2
+2
-2
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user